[rspec-users] Stories - Use view matchers rather than assigns.should?
jarkko at jlaine.net
Wed Apr 9 23:55:58 EDT 2008
On 10.4.2008, at 6.20, Tim Haines wrote:
> Thanks Pat and David. I'm implementing paging (via will_paginate)
> and thought I should start with a story. I think I grok what you're
> saying Pat - the stories should only be looking at "externally"
> visible stuff - i.e. what a real user can see or do.. That's why
> you consider controller.send("current_user=",..) a bit hacky right?
Yes. Just create a given that goes through the normal logging process.
You can parameterize it so that you can reuse it with different roles.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2417 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/rspec-users/attachments/20080410/2e4eb79b/attachment.bin
More information about the rspec-users