1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00
teamcapybara--capybara/spec/drivers_spec.rb

14 lines
319 B
Ruby
Raw Normal View History

2009-11-04 17:00:05 -05:00
require File.expand_path('spec_helper', File.dirname(__FILE__))
shared_examples_for 'driver' do
describe '#get' do
it "should fetch a response" do
2009-11-04 17:05:11 -05:00
@driver.visit('/')
2009-11-04 17:00:05 -05:00
@driver.body.should == 'Hello world!'
2009-11-04 17:05:11 -05:00
@driver.visit('/foo')
2009-11-04 17:00:05 -05:00
@driver.body.should == 'Another World'
end
end
end