1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Update to rspec2

Use rspec2's metadata features to skip celerity specs when run in MRI
and culerity specs when jruby is not installed.
This commit is contained in:
Bernerd Schaefer 2010-09-17 19:23:13 -05:00
parent 2ec8657308
commit 19e1ffc084
10 changed files with 68 additions and 56 deletions

View file

@ -1,17 +1,13 @@
require 'spec_helper'
if RUBY_PLATFORM =~ /java/
describe Capybara::Driver::Celerity do
before(:all) do
@driver = TestSessions::Celerity.driver
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"
it_should_behave_like "driver with cookies support"
describe Capybara::Driver::Celerity, :jruby => :platform do
before(:all) do
@driver = TestSessions::Celerity.driver
end
else
puts "#{File.basename(__FILE__)} requires JRuby; skipping.."
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"
it_should_behave_like "driver with cookies support"
end

View file

@ -1,6 +1,7 @@
require 'spec_helper'
describe Capybara::Driver::Culerity do
describe Capybara::Driver::Culerity, :jruby => :installed do
before(:all) do
@driver = TestSessions::Culerity.driver
end

View file

@ -1,6 +1,6 @@
require 'spec_helper'
describe Capybara::Driver::Culerity do
describe Capybara::Driver::Culerity, :jruby => :installed do
before(:all) do
Capybara.app_host = "http://capybara-testapp.heroku.com"
@driver = TestSessions::Culerity.driver