Hi friends in my rspec_controller
[email protected]_receive(:find_by_id).with('1').and_return(@article) get :show,:id => 1 in above example 1 if i mention get :show, :id => 1 below the schould_receive it is working fine but 2]get :show,:id => 1 @user.articles.should_receive(:find_by_id).with('1').and_return(@article) if i mention in the above way it is raising error! Why ? What is the reason? Could any one explain please ? Thanks in advance? -- Posted via http://www.ruby-forum.com/. _______________________________________________ rspec-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/rspec-users
