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:
parent
2ec8657308
commit
19e1ffc084
10 changed files with 68 additions and 56 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue