enkessler/cucumber_analytics

View on GitHub
testing/cucumber/step_definitions/verification_steps.rb

Summary

Maintainability
A
0 mins
Test Coverage
Then(/^the following text is provided:$/) do |expected_text|
  expected_text.sub!('path_to', @default_file_directory)

  expect(@output).to eq(expected_text)
end

Then(/^the text provided is "(.*)"$/) do |text_string|
  expect(@output).to eq(text_string.gsub('\n', "\n"))
end