1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00
teamcapybara--capybara/spec/driver/remote_culerity_driver_spec.rb
Bernerd Schaefer 19e1ffc084 Update to rspec2
Use rspec2's metadata features to skip celerity specs when run in MRI
and culerity specs when jruby is not installed.
2010-09-18 12:34:14 -05:00

22 lines
646 B
Ruby

require 'spec_helper'
describe Capybara::Driver::Culerity, :jruby => :installed do
before(:all) do
Capybara.app_host = "http://capybara-testapp.heroku.com"
@driver = TestSessions::Culerity.driver
end
after(:all) do
Capybara.app_host = nil
end
it "should navigate to a fully qualified remote page" do
@driver.visit('http://capybara-testapp.heroku.com/foo')
@driver.body.should include('Another World')
end
it_should_behave_like "driver"
it_should_behave_like "driver with javascript support"
it_should_behave_like "driver with header support"
it_should_behave_like "driver with status code support"
end