Logo: Relish

  1. Sign in

Project: Pickle

allow pickle to generate steps

  • @gen

In order to get going with pickle
As a dev
I want to be able to generate steps

Scenarios
script/generate pickle on fresh cuke install
Given
cucumber has been freshly generated
When
I run "rails g pickle -f"
Then
the file features/support/pickle.rb should exist
And
the file features/support/pickle.rb should match /require 'pickle\/world'/
And
the file features/step_definitions/pickle_steps.rb should be identical to the local step_definitions/pickle_steps.rb
script/generate pickle path on fresh cuke install
Given
cucumber has been freshly generated
When
I run "rails g pickle --paths -f"
Then
the file features/support/pickle.rb should exist
And
the file features/support/pickle.rb should match /require 'pickle\/world'/
And
the file features/support/pickle.rb should match /require 'pickle\/path\/world'/
And
the file features/step_definitions/pickle_steps.rb should be identical to the local step_definitions/pickle_steps.rb
And
the file features/support/paths.rb should be identical to the local support/paths.rb
script/generate pickle email on fresh cuke install
Given
cucumber has been freshly generated
When
I run "rails g pickle --email -f"
Then
the file features/support/pickle.rb should exist
And
the file features/support/pickle.rb should match /require 'pickle\/world'/
And
the file features/support/pickle.rb should match /require 'pickle\/email\/world'/
And
the file features/step_definitions/pickle_steps.rb should be identical to the local step_definitions/pickle_steps.rb
And
the file features/step_definitions/email_steps.rb should be identical to the local step_definitions/email_steps.rb
And
the file features/support/email.rb should be identical to the local support/email.rb
script/generate pickle path email on fresh cuke install
Given
cucumber has been freshly generated
When
I run "rails g pickle --paths --email -f"
Then
the file features/support/pickle.rb should exist
And
the file features/support/pickle.rb should be identical to the local support/pickle.rb
And
the file features/support/pickle.rb should match /require 'pickle\/world'/
And
the file features/support/pickle.rb should match /require 'pickle\/path\/world'/
And
the file features/support/pickle.rb should match /require 'pickle\/email\/world'/
And
the file features/step_definitions/pickle_steps.rb should be identical to the local step_definitions/pickle_steps.rb
And
the file features/support/paths.rb should be identical to the local support/paths.rb
And
the file features/step_definitions/email_steps.rb should be identical to the local step_definitions/email_steps.rb
And
the file features/support/email.rb should be identical to the local support/email.rb
regenerating pickle
Given
cucumber has been freshly generated
And
pickle path email has been freshly generated
When
I run "rails g pickle --paths --email -f"
Then
the file features/support/pickle.rb should match /require 'pickle\/world'/
And
the file features/support/pickle.rb should match /require 'pickle\/path\/world'/
And
the file features/support/pickle.rb should match /require 'pickle\/email\/world'/
And
the file features/step_definitions/pickle_steps.rb should be identical to the local step_definitions/pickle_steps.rb
And
the file features/support/paths.rb should be identical to the local support/paths.rb
And
the file features/step_definitions/email_steps.rb should be identical to the local step_definitions/email_steps.rb
But
the file features/support/pickle.rb should not match /require 'pickle\/world'.*require 'pickle\/world'/
And
the file features/support/pickle.rb should not match /require 'pickle\/path\/world'.*require 'pickle\/path\/world'/
And
the file features/support/pickle.rb should not match /require 'pickle\/email\/world'.*require 'pickle\/email\/world'/
And
the file features/support/email.rb should be identical to the local support/email.rb

Last published about 6 years ago by ianwhite.