Sha256: 9e056e15ba2f6e2d2b583fea49f661b17219520f496a1cbb755ccba35de9d27f

Contents?: true

Size: 686 Bytes

Versions: 13

Compression:

Stored size: 686 Bytes

Contents

Given /^I am on '([^\']*)'$/ do |path|
  get path
end
 
When /^I open '([^\']*)'$/ do |path|
  get path
end
 
When /^I press "([^\"]*)"$/ do |button|
  click_button(button)
end
 
When /^I follow "([^\"]*)"$/ do |link|
  click_link(link)
end

When /^I fill in "([^\"]*)" with "([^\"]*)"$/ do |field, value|
  fill_in(field, :with => value) 
end
 
Then /^I should see "([^\"]*)"$/ do |text|
  last_response.should contain(text)
end
 
Then /^I should not see "([^\"]*)"$/ do |text|
  last_response.should_not contain(text)
end
 
Then /^I should be on (.+)$/ do |page_name|
  URI.parse(current_url).path.should == path_to(page_name)
end

Then /^Save and View$/ do
  save_and_open_page
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
lenary-ginatra-2.0.2 features/step_definitions/page_steps.rb
ginatra-2.3.0 features/step_definitions/page_steps.rb
ginatra-2.2.7 features/step_definitions/page_steps.rb
ginatra-2.2.6 features/step_definitions/page_steps.rb
ginatra-2.2.5 features/step_definitions/page_steps.rb
ginatra-2.2.4 features/step_definitions/page_steps.rb
ginatra-2.2.3 features/step_definitions/page_steps.rb
ginatra-2.2.1 features/step_definitions/page_steps.rb
ginatra-2.2.0 features/step_definitions/page_steps.rb
ginatra-2.1.1 features/step_definitions/page_steps.rb
ginatra-2.1.0 features/step_definitions/page_steps.rb
ginatra-2.0.2 features/step_definitions/page_steps.rb
ginatra-2.0.1 features/step_definitions/page_steps.rb