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
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?