Sha256: e0db3bd072e6efbefb21e1ed32e12c456614884b995d835b91087a6c0d83f4d4

Contents?: true

Size: 1.12 KB

Versions: 16

Compression:

Stored size: 1.12 KB

Contents

Given /^I am viewing "([^"]*)"$/ do |url|
  visit("#{url}?event_error=false")
end

When /^I refresh the page$/ do
  visit(current_path)
end

Then /^I should (not )?see "([^"]*)"$/ do |negative, text|
  unless negative
    page.should have_content(text)
  else
    page.should_not have_content(text)
  end
end

When /^I click "([^"]*)"$/ do |text|
  click_on(text)
end

When /^I fill in the "([^"]*)" field with "([^"]*)"( and I change focus)?$/ do |field, value, change_focus|
  fill_in(field, :with => value)
  if change_focus
    find('body').click
  end
end

Then /^the "([^\"]*)" field should contain "([^\"]*)"$/ do |field, value|
  field_labeled(field).value.should =~ /#{value}/
end

When /^I (un)?check the "([^"]*)" field$/ do |uncheck, field|
  unless uncheck
    check(field)
  else
    uncheck(field)
  end
end

Then /^the "([^\"]*)" field should be (un)?checked$/ do |field, unchecked|
  unless unchecked
    page.should have_checked_field(field)
  else
    page.should_not have_checked_field(field)
  end
end

Then /^show me the page$/ do
  save_and_open_page
end

When /^I wait (\d+) seconds$/ do |interval|
  sleep(interval.to_f)
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
RubyApp-0.0.91 features/step_definitions/default_steps.rb
RubyApp-0.0.90 features/step_definitions/default_steps.rb
RubyApp-0.0.89 features/step_definitions/default_steps.rb
RubyApp-0.0.88 features/step_definitions/default_steps.rb
RubyApp-0.0.87 features/step_definitions/default_steps.rb
RubyApp-0.0.86 features/step_definitions/default_steps.rb
RubyApp-0.0.85 features/step_definitions/default_steps.rb
RubyApp-0.0.84 features/step_definitions/default_steps.rb
RubyApp-0.0.83 features/step_definitions/default_steps.rb
RubyApp-0.0.82 features/step_definitions/default_steps.rb
RubyApp-0.0.81 features/step_definitions/default_steps.rb
RubyApp-0.0.80 features/step_definitions/default_steps.rb
RubyApp-0.0.79 features/step_definitions/default_steps.rb
RubyApp-0.0.78 features/step_definitions/default_steps.rb
RubyApp-0.0.77 features/step_definitions/default_steps.rb
RubyApp-0.0.76 features/step_definitions/default_steps.rb