Displaying 5 results from an estimated 5 matches for "collinatorstudio".
Did you mean:
collinatorstudios
2012 Feb 07
6
nested route not receiving :id parameter within controller spec
...osts do
post :share, :on => :member
end
rake routes shows:
share_post POST /posts/:id/share(.:format) {:action=>"share", :controller=>"posts"}
...
Why is it ignoring the :id parameter in my test and therefore blowing up?
Thanks.
Patrick J. Collins
http://collinatorstudios.com
2011 Jun 06
9
rake 0.9.0 activated error + debugger not working?
...***** debugger statement ignored, use -d or --debug option to enable debugging"
But I am not sure what is asking for the -d or --debug? Is it rake? Is it
bundle? Neither rake nor bundle seem to like -d or --debug.. So I am totally
confused on this one...
Thanks.
Patrick J. Collins
http://collinatorstudios.com
2012 Feb 13
11
stale records with integration testing?
...(with
capybara), and found that my test was failing due to a validation error:
"email is already taken". I''m a bit confused because I thought when I
run "rspec spec/some_spec.rb", the test database would be wiped clear?
Is that not the case?
Patrick J. Collins
http://collinatorstudios.com
2011 Dec 02
2
problem setting expectation for test with delayed::job
...free_requests''
# ./app/controllers/posts_controller.rb:39:in `create''
# ./spec/controllers/post_controller_spec.rb:8:in `do_post''
# ./spec/controllers/post_controller_spec.rb:77
# ./spec/controllers/post_controller_spec.rb:75
Patrick J. Collins
http://collinatorstudios.com
2012 Feb 21
8
should_receive_chain
Do you often find yourself doing this:
active = double(''active'')
active.should_receive(:first)
users = double(''users'', active: active)
account.should_receive(:users).and_return(users)
for this:
account.users.active.first
?
Of course, we could use stub_chain, but that doesn''t let us know
*where* the chain broke.
Would you like to do this?