Search code examples
ruby-on-railsruby-on-rails-3cucumberrspec2rspec-rails

is view spec necessary with cucumber


Is it necessary to use view spec even if I am using cucumber?

I think cucumber takes care of the view and the flow.So is it required to use view spec?

A little explanation is appreciated..Thanks


Solution

  • In my opinion, no. I keep the view as simple as I can by extracting any complexity into view helpers, which I test separately.