Re: [rspec-users] Testing Controllers in Rspec

2013-02-27 Thread guirec c.
Personaly, I only create only the scenario when everything is ok (the happy path). For controllers, models, etc... I test everything. Acceptances specs are slow. Test everything in acceptances specs will make your test suite very very very slow and I think it's useless. It's only my opinion. So

Re: [rspec-users] Testing Controllers in Rspec

2013-02-27 Thread guirec c.
I think your are confused with acceptance specs and controllers spec. In a controller spec you must to test only your controller in total isolation. You can use stubs and mocks to do it. In the acceptance spec you must to test all the behaviour at a very high level. I think to create a record i