search for: 27ing

Displaying 4 results from an estimated 4 matches for "27ing".

Did you mean: 271g
2007 Aug 14
2
Spec''ing ApplicationController
...session[:username] != nil end I described ApplicationController, but couldn''t figure out how to call the authenticated method. I''m probably going about this quite wrongly and would appreciate any hints? Thanks, Scott -- View this message in context: http://www.nabble.com/Spec%27ing-ApplicationController-tf4270301.html#a12154175 Sent from the rspec-users mailing list archive at Nabble.com.
2008 Apr 29
1
Spec''ing controller macros
...it "should turn off session management for requests made by robot user agent" do request.stub!(:user_agent).and_return("Google Robot") controller.should_receive(:session).with(:off) get :index end end -- View this message in context: http://www.nabble.com/Spec%27ing-controller-macros-tp16927457p16927457.html Sent from the rspec-users mailing list archive at Nabble.com.
2008 May 02
4
spec''ing calls to super (or other Ruby keywords)
...owing? describe User do describe ''#save'' do it "should call save on the parent class" do # something.should_receive(:something) @user.save end end end Any thoughts? Thanks much, Matt -- View this message in context: http://www.nabble.com/spec%27ing-calls-to-super-%28or-other-Ruby-keywords%29-tp17027929p17027929.html Sent from the rspec-users mailing list archive at Nabble.com.
2007 Oct 12
6
locals in partials
hiya, in specing a partial, how can i assign a local var that is normally passed via :locals ? i tried adding :locals => to the render call but that doesnt seem to take linoj -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20071012/fd0acd92/attachment.html