Logo: Relish

  1. Sign in

Project: RSpec Rails 6.0

Helper generator spec

Scenarios
Helper generator
When
I run bundle exec rails generate helper posts
Then
the features should pass
Then
the output should contain:
      create  app/helpers/posts_helper.rb
      invoke  rspec
      create    spec/helpers/posts_helper_spec.rb
Helper generator with customized `default-path`
Given
a file named ".rspec" with:
--default-path behaviour
And
I run bundle exec rails generate helper posts
Then
the features should pass
Then
the output should contain:
      create  app/helpers/posts_helper.rb
      invoke  rspec
      create    behaviour/helpers/posts_helper_spec.rb

Last published 4 months ago by Jon Rowe.