Sha256: 8113514558a259df5fdc2958f9d8ef8bb488b5958265bbd3cdca32b9770a72c4

Contents?: true

Size: 464 Bytes

Versions: 9

Compression:

Stored size: 464 Bytes

Contents

Given /^I am on the search page$/ do
  visit "/search"
end

When /^I search for "([^"]*)"$/ do |text|
  fill_in 'q', :with => text
  click_button 'Search'
end

Then /^I should see a search result link to "([^"]*)" with the url "([^"]*)"$/ do |text, url|
  within ".content" do
    page.should have_link text, :href => url
  end
end

Then /^I should see "([^"]*)" in the search results$/ do |text|
  within ".content" do
    page.should have_content text
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
wally-0.0.22 features/step_definitions/search_features_steps.rb
wally-0.0.21 features/step_definitions/search_features_steps.rb
wally-0.0.20 features/step_definitions/search_features_steps.rb
wally-0.0.19 features/step_definitions/search_features_steps.rb
wally-0.0.18 features/step_definitions/search_features_steps.rb
wally-0.0.17 features/step_definitions/search_features_steps.rb
wally-0.0.16 features/step_definitions/search_features_steps.rb
wally-0.0.15 features/step_definitions/search_features_steps.rb
wally-0.0.14 features/step_definitions/search_features_steps.rb