[rspec-users] Stories - Use view matchers rather than assigns.should?
dchelimsky at gmail.com
Thu Apr 10 12:59:42 EDT 2008
On Apr 10, 2008, at 12:48 PM, Pat Maddox wrote:
> Keep in mind that not every step of every story needs to
> be a round-trip request. It's even good to write some stories that
> don't make requests at all!
I definitely agree with this, however I do see a difference between
accessing models directly through their API (which I do) and accessing
the internals of the request cycle (which I don't).
> In any test, you need to control the state of the world - the test
> fixture. If your test requires a bit of bootstrapping in order to get
> there, that's fine. The only thing that matters is that your test
> gives you confidence in the behavior you're testing.
This is the ultimate bottom line. Tests are about confidence.
More information about the rspec-users