Sha256: 2da703a99a389cb04a4254ccd753d1fd07a256f22030ca4d40732df7dbd4bd79

Contents?: true

Size: 1.17 KB

Versions: 7

Compression:

Stored size: 1.17 KB

Contents

require 'fileutils'


When /^I have a logo file in the correct location$/ do
  FileUtils.cp "features/support/logo.png", "features/support/pretty_face/"
end

Then /^I should remove the logo file$/ do
  FileUtils.rm "features/support/pretty_face/logo.png"
end

When /^I have a suite header partial in the correct location$/ do
  FileUtils.cp "features/support/_suite_header.erb", "features/support/pretty_face/"
end

Then /^I should remove the suite header partial file$/ do
  FileUtils.rm "features/support/pretty_face/_suite_header.erb"
end

When /^I have a feature header partial in the correct location$/ do
  FileUtils.cp "features/support/_feature_header.erb", "features/support/pretty_face/"
end

Then /^I should remove the feature header partial file$/ do
  FileUtils.rm "features/support/pretty_face/_feature_header.erb"
end

Then(/^the background of the error message row should be "(.*?)"$/) do |background|
  @browser = Watir::Browser.new :firefox
  visit ErrorDisplay do |page|
    page.error_background.should include background
  end
end

Then(/^the text of the of the error message row should be "(.*?)"$/) do |color|
  on(ErrorDisplay).error_text_color.should include color
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pretty_face-0.10.1 features/step_definitions/report_steps.rb
pretty_face-0.10 features/step_definitions/report_steps.rb
pretty_face-0.9.1 features/step_definitions/report_steps.rb
pretty_face-0.9 features/step_definitions/report_steps.rb
pretty_face-0.8.2 features/step_definitions/report_steps.rb
pretty_face-0.8.1 features/step_definitions/report_steps.rb
pretty_face-0.8 features/step_definitions/report_steps.rb