Sha256: 137778c1c58289af47f1d4964dbdf6d4ca6574c5574c27d9d71e666b1aa9d3cf

Contents?: true

Size: 728 Bytes

Versions: 1

Compression:

Stored size: 728 Bytes

Contents

Then(/^I have the file(.* )and contents of this file should be:$/) do |file, content|
  file_content = read_from_app(file.strip)
  expect(file_content).to eq(content)
end

Then(/^I have the file(.* )and contents of this file should include:$/) do |file, content|
  file_content = read_from_app(file.strip)
  expect(file_content).to include(content)
end

Then(/^I have the file(.* )and contents of this file should not include:$/) do |file, content|
  file_content = read_from_app(file.strip)
  expect(file_content).to_not include(content)
end

Then(/^I have the file(.* )and contents of this file should match:$/) do |file, content|
  file_content = read_from_app(file.strip)
  expect(file_content).to match(%r{#{content}})
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pah-0.0.15 features/step_definitions/file_content.rb