Sha256: c9ae66e7778208c67cff6ec870dd6de5e924633681190fbf3e3338dce5d8a267

Contents?: true

Size: 510 Bytes

Versions: 2

Compression:

Stored size: 510 Bytes

Contents

When "I surf to '$url'" do |url|
  visit url
end

Then /^I should see '(.*)'$/ do |text|
  response_body.should contain(/#{text}/m)
end

Then /^I should see a list of 10 trends$/ do
  text = "here are the top twitter trends right now"
  response_body.should contain(/#{text}/m)
  response_body.should have_selector("ol.tweets")
  response_body.should have_selector('li.tweet', :count => 10)
end

Given /^I add my own trend$/ do
  fill_in 'keyphrase', :with => 'london restaurants'
  click_button 'search'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sshingler-jkl-0.0.5 features/step_definitions/home_page_steps.rb
sshingler-jkl-0.0.6 features/step_definitions/home_page_steps.rb