2010-09-17 23:56:32 +00:00
|
|
|
require 'spec_helper'
|
2009-12-19 11:40:08 +00:00
|
|
|
|
2010-09-18 00:23:13 +00:00
|
|
|
describe Capybara::Driver::Culerity, :jruby => :installed do
|
2009-12-19 11:40:08 +00:00
|
|
|
before(:all) do
|
|
|
|
Capybara.app_host = "http://capybara-testapp.heroku.com"
|
2010-09-07 16:16:19 +00:00
|
|
|
@driver = TestSessions::Culerity.driver
|
2009-12-19 11:40:08 +00:00
|
|
|
end
|
2010-09-15 20:05:05 +00:00
|
|
|
|
2009-12-19 11:40:08 +00:00
|
|
|
after(:all) do
|
|
|
|
Capybara.app_host = nil
|
2010-01-17 16:40:26 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
it "should navigate to a fully qualified remote page" do
|
2010-06-29 19:54:40 +00:00
|
|
|
@driver.visit('http://capybara-testapp.heroku.com/foo')
|
|
|
|
@driver.body.should include('Another World')
|
2009-12-19 11:40:08 +00:00
|
|
|
end
|
2010-09-15 20:05:05 +00:00
|
|
|
|
2009-12-19 11:40:08 +00:00
|
|
|
it_should_behave_like "driver"
|
|
|
|
it_should_behave_like "driver with javascript support"
|
|
|
|
it_should_behave_like "driver with header support"
|
2010-06-07 03:14:40 +00:00
|
|
|
it_should_behave_like "driver with status code support"
|
2010-01-17 16:40:26 +00:00
|
|
|
end
|