Ruby on Rails
Tuesday, July 3, 2012
it looks like parameters are now passed as strings.
On Tuesday, July 3, 2012 at 4:21 AM, venkata reddy wrote:
I have a simple rspec test which is failing in after i upgrade to3.2.6.here is the spec in users_controller_spec.rbdescribe "show action" dobefore(:each) doUser.stub!(:find).with(@user.id).and_return(@user)enddef do_getget :show, :id => @user.idendit "should be successful" dodo_getresponse.should be_successendendand here is the error1) UsersController show action should be successful Failure/Error:get :show, :id => @user.id ......................... (class)>received :find with unexpected arguments expected: (2) got: ("2")Not sure where is going wrong. The show action has nothing in thecontroller, it is just def show end--You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.To post to this group, send email to rubyonrails-talk@googlegroups.com.To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment