Sha256: d09c1d8e3eb4d4f9e28d62314b35bf323550a3c1a5e043abdc0abcd4dad12776

Contents?: true

Size: 987 Bytes

Versions: 8

Compression:

Stored size: 987 Bytes

Contents

Then /^the output should contain all of these:$/ do |table|
  table.raw.flatten.each do |string|
    assert_partial_output(string)
  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

8 entries across 8 versions & 1 rubygems

Version Path
rspec-core-2.6.4 features/step_definitions/additional_cli_steps.rb
rspec-core-2.6.3 features/step_definitions/additional_cli_steps.rb
rspec-core-2.6.3.beta1 features/step_definitions/additional_cli_steps.rb
rspec-core-2.6.2.rc features/step_definitions/additional_cli_steps.rb
rspec-core-2.6.0 features/step_definitions/additional_cli_steps.rb
rspec-core-2.6.0.rc6 features/step_definitions/additional_cli_steps.rb
rspec-core-2.6.0.rc4 features/step_definitions/additional_cli_steps.rb
rspec-core-2.6.0.rc2 features/step_definitions/additional_cli_steps.rb