Sha256: f1a3c08fd4ef02f082f549ba266ff2624a710d62cad6b9ab7ed79454ff6477d5

Contents?: true

Size: 777 Bytes

Versions: 18

Compression:

Stored size: 777 Bytes

Contents

Given /^pending\s+"([^\"]+)"$/ do |msg|
  pending
end

Given(/^the BERKSHELF_EDITOR and VISUAL environment variables are not set$/) do
  set_env "BERKSHELF_EDITOR", nil
  set_env "VISUAL", nil
end

Given /^the environment variable (.+) is nil$/ do |variable|
  set_env variable, nil
end

Given /^the environment variable (.+) is "(.+)"$/ do |variable, value|
  set_env variable, value
end

Then /^the output should be the same as \`(.+)\`$/ do |command|
  run_simple(command)
  output = output_from(command)
  expect(all_output).to include(output)
end

# The built-in regex matcher does not support multi-line matching :(
Then /^the output should match multiline:$/ do |expected|
  regex = Regexp.new(expected.strip, Regexp::MULTILINE)
  expect(regex).to match(all_output)
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
berkshelf-2.0.18 features/step_definitions/utility_steps.rb
berkshelf-2.0.17 features/step_definitions/utility_steps.rb
berkshelf-2.0.16 features/step_definitions/utility_steps.rb
berkshelf-2.0.15 features/step_definitions/utility_steps.rb
berkshelf-2.0.14 features/step_definitions/utility_steps.rb
berkshelf-2.0.13 features/step_definitions/utility_steps.rb
berkshelf-2.0.12 features/step_definitions/utility_steps.rb
berkshelf-2.0.11 features/step_definitions/utility_steps.rb
berkshelf-2.0.10 features/step_definitions/utility_steps.rb
berkshelf-2.0.9 features/step_definitions/utility_steps.rb
berkshelf-2.0.8 features/step_definitions/utility_steps.rb
berkshelf-2.0.7 features/step_definitions/utility_steps.rb
berkshelf-2.0.6 features/step_definitions/utility_steps.rb
berkshelf-2.0.5 features/step_definitions/utility_steps.rb
berkshelf-2.0.4 features/step_definitions/utility_steps.rb
berkshelf-2.0.3 features/step_definitions/utility_steps.rb
berkshelf-2.0.1 features/step_definitions/utility_steps.rb
berkshelf-2.0.0 features/step_definitions/utility_steps.rb