Last active
August 29, 2015 14:23
-
-
Save chischaschos/bddf9f0e5443a8927d40 to your computer and use it in GitHub Desktop.
bare-capybara-googler
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source :gemcutter | |
gem 'rspec' | |
gem 'capybara' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'capybara/rspec' | |
Capybara.current_driver = :selenium | |
describe "Google something", type: 'request', js: true do | |
it "should look for nice girls" do | |
visit 'http://www.google.com' | |
fill_in '#gbqfq', with: 'capybara' | |
click_button '#gbqfba' | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#require 'spec_helper' | |
require 'capybara/rspec' | |
Capybara.current_driver = :selenium | |
describe 'Picker', type: 'request' do | |
let(:url) do | |
"http://www.enlace.sep.gob.mx/content/ba/pages/base_de_datos_completa/" | |
end | |
#let(:picker) do | |
#Picker.new url | |
#end | |
#it "Take url value when instantiated" do | |
#picker.should be_an_instance_of Picker | |
#end | |
#it "should have a method to crawl a url" do | |
#picker.methods.should include :crawl | |
#end | |
it "has a link to get xls file" do | |
visit url | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment