1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00
teamcapybara--capybara/spec/session/culerity_session_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

26 lines
692 B
Ruby

require 'spec_helper'
describe Capybara::Session, :jruby => :installed do
context 'with culerity driver' do
before(:all) do
@session = TestSessions::Culerity
end
describe '#driver' do
it "should be a culerity driver" do
@session.driver.should be_an_instance_of(Capybara::Driver::Culerity)
end
end
describe '#mode' do
it "should remember the mode" do
@session.mode.should == :culerity
end
end
it_should_behave_like "session"
it_should_behave_like "session with javascript support"
it_should_behave_like "session with headers support"
it_should_behave_like "session with status code support"
end
end