teamcapybara--capybara/spec/drivers_spec.rb

14 lines
315 B
Ruby
Raw Normal View History

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