I have a simple rspec test which is failing in after i upgrade to
3.2.6.
here is the spec in users_controller_spec.rb
describe “show action” do
before(:each) do
User.stub!(:find).with(@user.id).and_return(@user)
end
def do_get
get :show, :id => @user.id
end
it “should be successful” do
do_get
response.should be_success
end
end
and here is the error
- 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 the
controller, it is just def show end