Sha256: 81472eb9dacca4745323467e94b4df1ae253ea5548d8e857306f2d0140735b64

Contents?: true

Size: 917 Bytes

Versions: 10

Compression:

Stored size: 917 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 end with:$/) do |file, content|
  file_content = read_from_app(file.strip)
  expect(file_content).to end_with(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(Regexp.new(content))
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
pah-0.0.28 features/step_definitions/file_content.rb
pah-0.0.27 features/step_definitions/file_content.rb
pah-0.0.26 features/step_definitions/file_content.rb
pah-0.0.25 features/step_definitions/file_content.rb
pah-0.0.24 features/step_definitions/file_content.rb
pah-0.0.23 features/step_definitions/file_content.rb
pah-0.0.22 features/step_definitions/file_content.rb
pah-0.0.21 features/step_definitions/file_content.rb
pah-0.0.20 features/step_definitions/file_content.rb
pah-0.0.19 features/step_definitions/file_content.rb