[rspec-users] Stories - Use view matchers rather than assigns[].should?
Kamal Fariz
kamal.fariz at gmail.com
Thu Apr 10 22:16:16 EDT 2008
> When I create a user with foo="bar"
>
> is better because it doesn't expose the implementation. Just the
> model concept and any relevant attributes.
I hide model details from Stories by using webrat and form field labels.
When I create a user with Username: kamal, Password: test
And click submit
Seems safer that way as the views get tested at the same time.
Regards,
kamal
More information about the rspec-users
mailing list