Skip to content

Instantly share code, notes, and snippets.

@pnegri
Created September 24, 2012 13:18
Show Gist options
  • Save pnegri/3775907 to your computer and use it in GitHub Desktop.
Save pnegri/3775907 to your computer and use it in GitHub Desktop.
require 'test_helper'
describe "Feature: Search on Google" do
before do
Capybara.run_server = false
Capybara.current_driver = :selenium
Capybara.app_host = 'http://www.google.com/'
end
it "must return results for futebol" do
visit "/"
page.text.must_include "Pesquisar"
fill_in 'q', :with => 'futebol'
# page.text.must_include "futebol ao vivo"
assert page.has_content? "futebol ao vivo"
# page.must have_content("futebol ao vivo")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment