Since switching over to RSpec 1.0.9 I started using story runner and as well I've began spec'in my views.
I honestly think that spec'in views is beneficial and necessary.
Just make your spec's are practical eg.
it "should not show the game to annon users"
it "should show the game name"
it "should have an edit games link for the admin"
it "should not have a edit games link for user"
it "should how many players in the game"
it "should how many much money you have left"
I think Spec'in views is part of the workflow, you start from the outside and work your way in:
Stories -> Views -> Controllers -> Models
Isn't TDD/BDD a way to prove that your application works as expected?
Why shouldn't you be proving what the user sees?
spec'in views can become granular but its up to the spec'r to make that call.
Last edited by OmenKing (2007-10-07 23:57:44)