Skip to content

Instantly share code, notes, and snippets.

@chischaschos
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chischaschos/bddf9f0e5443a8927d40 to your computer and use it in GitHub Desktop.
Save chischaschos/bddf9f0e5443a8927d40 to your computer and use it in GitHub Desktop.
bare-capybara-googler
source :gemcutter
gem 'rspec'
gem 'capybara'
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
#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