2009-12-19 06:40:08 -05:00
|
|
|
require File.expand_path('../spec_helper', File.dirname(__FILE__))
|
|
|
|
|
|
|
|
describe Capybara::Driver::Culerity do
|
|
|
|
before(:all) do
|
|
|
|
Capybara.app_host = "http://capybara-testapp.heroku.com"
|
2010-01-17 11:40:26 -05:00
|
|
|
Capybara.run_server = false
|
2010-02-25 19:14:58 -05:00
|
|
|
@driver = Capybara::Driver::Culerity.new(TestApp)
|
2009-12-19 06:40:08 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
after(:all) do
|
|
|
|
Capybara.app_host = nil
|
2010-01-17 11:40:26 -05:00
|
|
|
Capybara.run_server = true
|
|
|
|
end
|
|
|
|
|
|
|
|
it "should navigate to a fully qualified remote page" do
|
2010-06-29 15:54:40 -04:00
|
|
|
@driver.visit('http://capybara-testapp.heroku.com/foo')
|
|
|
|
@driver.body.should include('Another World')
|
2009-12-19 06:40:08 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
it_should_behave_like "driver"
|
|
|
|
it_should_behave_like "driver with javascript support"
|
|
|
|
it_should_behave_like "driver with header support"
|
2010-06-06 23:14:40 -04:00
|
|
|
it_should_behave_like "driver with status code support"
|
2010-01-17 11:40:26 -05:00
|
|
|
end
|