Writing acceptance tests is enough? Are controller/model/view tests necessary?

apocalyptiq
2011-03-08T07:38:10Z

I''m new in BDD, i''m writing now my first app in BDD way.
I''m using
RSpec with Steak for acceptance tests ( https://github.com/cavalle/steak
).

I wrote first acceptance test for user signuping:

user clicks sign up link on homepage
fills all fields in sign up form
clicks submit button
checks for activation email

Should I test views here? Homepage to contain Sign up link with good
href and new user form for contain all fields and good action= and
method="post"?

Is views testing practiced in BDD at all? Or, are in BDD accteptance
tests enough and there is no need for model/controller/view tests?
Becouse if we test all the features, all behaviour which we want from
our app in acceptance tests, what for would be other tests? For
example, if we have scenario when user goes to homepage, clicks sign
up and signs up, there is no need to even write ''should be
success''
for home controller and users controller, becouse we already test it
in that scenario. Similar with models - if signing up and validating
works well, there is no need for model tests.

What are you think about it? What are real-life practices of BDD?

--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at