Sha256: 2978cf60f737f5d04f17bb4f6c91632a169a19490d9148d9c08a38a0582a22ac

Contents?: true

Size: 972 Bytes

Versions: 39

Compression:

Stored size: 972 Bytes

Contents

When /^I run rspec( with the documentation option)?$/ do |documentation|
  rspec_its_gem_location = File.expand_path('../../../lib/rspec/its', __FILE__)
  require_option = "--require #{rspec_its_gem_location}"
  format_option = documentation ? "--format documentation" : ""
  rspec_command = ['rspec', require_option, format_option, 'example_spec.rb'].join(' ')
  step "I run `#{rspec_command}`"
end

When /^I run rspec specifying line number (\d+)$/ do |line_number|
  rspec_its_gem_location = File.expand_path('../../../lib/rspec/its', __FILE__)
  require_option = "--require #{rspec_its_gem_location}"
  file_specification = "example_spec.rb:#{line_number}"
  rspec_command = ['rspec', require_option, file_specification].join(' ')
  step "I run `#{rspec_command}`"
end

Then /^the example(?:s)? should(?: all)? pass$/ do
  step %q{the output should contain "0 failures"}
  step %q{the output should not contain "0 examples"}
  step %q{the exit status should be 0}
end

Version data entries

39 entries across 34 versions & 6 rubygems

Version Path
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.6.0/gems/rspec-its-1.2.0/features/step_definitions/additional_cli_steps.rb
vagrant-unbundled-2.2.6.2 vendor/bundle/ruby/2.6.0/gems/rspec-its-1.2.0/features/step_definitions/additional_cli_steps.rb
vagrant-unbundled-2.2.6.1 vendor/bundle/ruby/2.6.0/gems/rspec-its-1.2.0/features/step_definitions/additional_cli_steps.rb
vagrant-unbundled-2.2.6.0 vendor/bundle/ruby/2.6.0/gems/rspec-its-1.2.0/features/step_definitions/additional_cli_steps.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.5.0/gems/rspec-its-1.2.0/features/step_definitions/additional_cli_steps.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.6.0/gems/rspec-its-1.2.0/features/step_definitions/additional_cli_steps.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.5.0/gems/rspec-its-1.2.0/features/step_definitions/additional_cli_steps.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.6.0/gems/rspec-its-1.2.0/features/step_definitions/additional_cli_steps.rb
vagrant-unbundled-2.2.3.0 vendor/bundle/ruby/2.5.0/gems/rspec-its-1.2.0/features/step_definitions/additional_cli_steps.rb
vagrant-unbundled-2.2.2.0 vendor/bundle/ruby/2.5.0/gems/rspec-its-1.2.0/features/step_definitions/additional_cli_steps.rb
vagrant-unbundled-2.2.0.0 vendor/bundle/ruby/2.5.0/gems/rspec-its-1.2.0/features/step_definitions/additional_cli_steps.rb
vagrant-unbundled-2.1.4.0 vendor/bundle/ruby/2.5.0/gems/rspec-its-1.2.0/features/step_definitions/additional_cli_steps.rb
vagrant-unbundled-2.1.2.0 vendor/bundle/ruby/2.3.0/gems/rspec-its-1.2.0/features/step_definitions/additional_cli_steps.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/rspec-its-1.2.0/features/step_definitions/additional_cli_steps.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/rspec-its-1.2.0/features/step_definitions/additional_cli_steps.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/features/step_definitions/additional_cli_steps.rb
vagrant-unbundled-2.1.1.0 vendor/bundle/ruby/2.5.0/gems/rspec-its-1.2.0/features/step_definitions/additional_cli_steps.rb
vagrant-unbundled-2.0.4.0 vendor/bundle/ruby/2.5.0/gems/rspec-its-1.2.0/features/step_definitions/additional_cli_steps.rb
vagrant-unbundled-2.0.3.0 vendor/bundle/ruby/2.5.0/gems/rspec-its-1.2.0/features/step_definitions/additional_cli_steps.rb
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/features/step_definitions/additional_cli_steps.rb