Sha256: 3bc559a595bad74b0841a6bd9ec14ad9a162ec2f1f38cf5146f2aa325679672c

Contents?: true

Size: 295 Bytes

Versions: 3

Compression:

Stored size: 295 Bytes

Contents

Then /^the output should contain the content of file "(.*)"$/ do |filename|
  expected = nil
  cd('../../spec/fixtures') do
    expected = File.read(filename)
  end

  actual = all_commands.map { |c| c.output }.join("\n")

  expect(unescape_text(actual)).to include(unescape_text(expected))
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
apiaryio-0.4.2 features/step_definitions/file_content_step.rb
apiaryio-0.4.1 features/step_definitions/file_content_step.rb
apiaryio-0.4.0-x86_64-darwin-13 features/step_definitions/file_content_step.rb