ids = Category.find(:all).map(&:id)

ids = mock('ids')
Category.should_receive(:find).with(all).and_return(??)

and
what's the difference between mock and mock_model
when should i use mock and mock_model
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to