similar to: How to mock helpers in view specs ?

Displaying 20 results from an estimated 110 matches similar to: "How to mock helpers in view specs ?"

2006 Feb 20
0
Securing the Model
Hello, I have a security schema for all kinds of items in my application (pages, logs, links, ...). Basically it works as follows : readable_by can be either ''a'' (all) ''g'' (group) or ''u'' (owner). If it is group then rgroup_id is set. writable_by can be either ''a'', ''g'' or ''u''. If it is
2005 Feb 03
2
Res: Re: Simple LDAP authentication
OK !! What I should configure in smb.conf in order to use pam_ldap ?? Tanks again !! ---------------------------------------------------------------------------------------- Ruy de Oliveira - Analista de Suporte Mercantil do Brasil S/A Fone: (31) 3489-5960 - Fax: (31) 3489-5001 "Gerald (Jerry) Carter" <jerry@samba.org> 03/02/2005 14:24 Para:
2007 May 24
9
Mocking, changing method interfaces and integration tests
Suppose we have a method ''foo'' which internally uses another method ''bar''. Being good BDDers we mock out the ''bar'' method. After all, we only want to spec the ''foo'' method - actually running the ''bar'' method means slower, less maintainable and brittler specs. That''s why we <3 mocking,
2008 Mar 10
2
New rsync option checksum-path
This is a suggestion for adding to rsync an option "--checksum-path=PROGRAM". Once this option is given, provided it is accompained by option "--checksum", both the receiving and sending side of rsync would compute checksums calling PROGRAM, instead of the usual checksum program. Why is this usefull? Suppose I have two collections of MP3 files at different locations which I
2008 Aug 08
2
template.expect_render fails when partial is rendered from a helper
My spec; describe ''subnav rendering while logged in'' do before do template.stub!(:logged_in?).and_return(true) template.stub! (:current_profile).at_least(:once).and_return(mock_profile) end def do_render render "/homepages/show.html.erb" end it "should render the logged in partial for homepages" do
2005 Feb 03
1
Simple LDAP authentication
Hi friends, I want to authenticate user login to samba with LDAP (NDS in fact), but I can?t change schema of LDAP (I'am not the NDS manager). Can I authenticate user if the BIND to LDAP succed, like in apache (option AuthONBind) ???? I dont want to store user information (home/group/etc) in the LDAP database. Tanks in advance. At
2007 Dec 04
0
shared behaviour for all views
Is there a way I can write something like a shared behaviour for all views that just checks the page responds with a 200 status and has a title, meta tags, and an h1? Here''s an idea for a shared behaviour (that only applies if I set views to use it manually with it_should_behave_like "a standard layout"): describe "a standard layout", :shared => true do
2006 Jan 11
1
OpenSSH Installation in Win2k Platform
Hi, How can I install the OpenSSH in Windows. When I downloaded the file, there is no .exe. Thanks for your advance help. -- ___________________________________________________ Play 100s of games for FREE! http://games.mail.com/
2008 Apr 19
4
Is testing output within content_for possible?
I wanted to test that the links below were being rendered in the views. - content_for :sidebar do %ul.links %li= edit_link edit_admin_contact_url(@contact), "Contact" # view test it "should have the correct side bar links" do do_render response.should have_tag("ul.links") do with_tag("a[href=?]",
2010 Oct 13
4
usbhid-ups did not claim interface 0 before use
Hi, I tried in vain to find an answer for my question, so let's post it here. I've got a seemingly perfectly well running setup with NUT and a APC SmartUPS 750. However, my log is being filled with messages like this: Oct 13 12:13:08 alkmene kernel: usb 3-1: usbfs: process 16588 (usbhid-ups) did not claim interface 0 before use Oct 13 12:13:40 alkmene last message repeated 43 times
2007 Jul 14
8
Specing Layouts
Hi, I''ve just started to try and spec my application.html.erb layout as one of the view specs but it totally barfs. I''m guessing that it''s due to the yield statements in the layout. Any clues as to how to proceed? Cheers Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Oct 21
3
deliver + quota failure
I use Dovecot's deliver as the LDA for Postfix in a virtual user setting. My maillog reads: Oct 22 00:17:51 mail dovecot: auth(default): master in: USER 1 mark.ruys at in2sports.net service=deliver Oct 22 00:17:51 mail dovecot: auth-worker(default): sql(mark.ruys at in2sports.net): SELECT maildir AS home, 5000 AS uid, 5000 AS gid, CONCAT('dirsize:storage=', round(quota/1000))
2013 Aug 03
2
Add a public ssh key form node A to authorized keys on node B
With the risc I ask a queston answered a hunderd times before (which I couldn''t find)... On node A I want to create a ssh key. For this I exec a ssh-keygen. Now I want the generated public key added to the authorized key file of node B. Probably I need the ssh_authorized_key resource for this. But then I need the public key of node A as a string in node B. I can''t see how to
2009 Aug 25
17
WHy is rails so annoying to deploy?
I''ve been having great fun trying to deploy a fresh install of rails on debian, specifically xlsuite to test it out, but my god how many more errors can I take before I give up. RAILS IS NOT NICE After battling with countless different errors from trying Ubuntu, Fedora, Windows and now Debian the list goes on and on and ON... now the latest error `load_missing_constant'':
2007 May 10
12
shared descriptions -- a couple of issues
Hello All, I''ve just upgraded to rspec/rspec_on_rails 0.9.3 and am very excited about shared descriptions. They couldn''t have come at a better time: I just finished refactoring some REST controllers so that the bulk of the actions are inherited from a superclass. Now I can write the specs once, too. :) I''ve hit a couple of snags, though. I thought I''d
2006 Nov 07
1
Store outgoing mail in users mailbox
This might be a MTA question, but because I use Dovecot as an LDA, maybe some can help me here. Our users would like that outgoing mail is automatically saved in some folder, say Sent. We use Postfix with virtual domains, Maildir and Dovecot+Sieve as LDA. Outgoing mail is relayed by our imap-server (with authentification of course, no open relay). Most people seem to advice Postfix
2010 Mar 12
2
Winbind Samba 3.5.1
Somehow I can't figure out what's going wrong. I have a Samba server running as PDC. Workstations can join the domain and users can logon. So far so good. I need winbind to be able to authorize a radius server to the PDC. This I cannot achieve. If someone got give me a clue, I spend already quiet some time Google the net :( Thanks, Mark # wibinfo -u root markr # wbinfo -a
2008 Mar 18
11
"Why not MockEverthing" or why use fixtures for all tests?
Hello fellow RSpec users. Before you all start warming up your flame throwers please let me explain my Subject line. I''ve been working over 4 months on a large Rails project with a few other developers. Test coverage was spotty at best, though they *were* RSpec tests. One of the other developers and I had started adding more tests, mostly controller tests using the methodology
2007 Apr 12
1
Release for CentOS-5 i386 and x86_64
We are pleased to announce the immediate availability of CentOS-5 for the i386 and x86_64 Architectures. CentOS-5 is based on the upstream release 5, and includes packages from all variants including Server and Client. All upstream repositories have been combined into one, to make it easier for end users to work with. And the option to further enable external repositories at install time is
2007 Apr 12
1
Release for CentOS-5 i386 and x86_64
We are pleased to announce the immediate availability of CentOS-5 for the i386 and x86_64 Architectures. CentOS-5 is based on the upstream release 5, and includes packages from all variants including Server and Client. All upstream repositories have been combined into one, to make it easier for end users to work with. And the option to further enable external repositories at install time is