Sha256: 1ccb9fc9fdb3d84b9697bd5eca9ff65f7d5f32aa4aafe0fa1e92566ce5482c9d

Contents?: true

Size: 999 Bytes

Versions: 19

Compression:

Stored size: 999 Bytes

Contents

Then /^the output should contain all of these:$/ do |table|
  table.raw.flatten.each do |string|
    assert_partial_output(string, all_output)
  end
end

Then /^the output should not contain any of these:$/ do |table|
  table.raw.flatten.each do |string|
    all_output.should_not =~ regexp(string)
  end
end

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

Then /^the file "([^"]*)" should contain:$/ do |file, partial_content|
  check_file_content(file, partial_content, true)
end

Then /^the backtrace\-normalized output should contain:$/ do |partial_output|
  # ruby 1.9 includes additional stuff in the backtrace,
  # so we need to normalize it to compare it with our expected output.
  normalized_output = all_output.split("\n").map do |line|
    line =~ /(^\s+# [^:]+:\d+)/ ? $1 : line # http://rubular.com/r/zDD7DdWyzF
  end.join("\n")

  normalized_output.should =~ regexp(partial_output)
end

Version data entries

19 entries across 17 versions & 4 rubygems

Version Path
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/rspec-core-2.8.0/features/step_definitions/additional_cli_steps.rb
resque-pool-0.3.0.beta.2 vendor/bundle/ruby/1.8/gems/rspec-core-2.8.0/features/step_definitions/additional_cli_steps.rb
horseman-0.0.4 vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/step_definitions/additional_cli_steps.rb
horseman-0.0.4 vendor/ruby/1.9.1/gems/rspec-core-2.7.1/features/step_definitions/additional_cli_steps.rb
horseman-0.0.3 vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/step_definitions/additional_cli_steps.rb
horseman-0.0.3 vendor/ruby/1.9.1/gems/rspec-core-2.7.1/features/step_definitions/additional_cli_steps.rb
horseman-0.0.2 vendor/ruby/1.9.1/gems/rspec-core-2.7.1/features/step_definitions/additional_cli_steps.rb
rspec-core-2.8.0 features/step_definitions/additional_cli_steps.rb
nutshell-crm-0.0.6.alpha vendor/bundle/gems/rspec-core-2.7.1/features/step_definitions/additional_cli_steps.rb
rspec-core-2.8.0.rc2 features/step_definitions/additional_cli_steps.rb
nutshell-crm-0.0.5 vendor/bundle/gems/rspec-core-2.7.1/features/step_definitions/additional_cli_steps.rb
nutshell-crm-0.0.4 vendor/bundle/gems/rspec-core-2.7.1/features/step_definitions/additional_cli_steps.rb
nutshell-crm-0.0.3 vendor/bundle/gems/rspec-core-2.7.1/features/step_definitions/additional_cli_steps.rb
nutshell-crm-0.0.2 vendor/bundle/gems/rspec-core-2.7.1/features/step_definitions/additional_cli_steps.rb
nutshell-crm-0.0.1 vendor/bundle/gems/rspec-core-2.7.1/features/step_definitions/additional_cli_steps.rb
rspec-core-2.8.0.rc1 features/step_definitions/additional_cli_steps.rb
rspec-core-2.7.1 features/step_definitions/additional_cli_steps.rb
rspec-core-2.7.0 features/step_definitions/additional_cli_steps.rb
rspec-core-2.7.0.rc1 features/step_definitions/additional_cli_steps.rb