Skip to content

Commit

Permalink
Merge pull request teamcapybara#349 from Nerian/patch-1
Browse files Browse the repository at this point in the history
RSpec 3 deprecation warning
  • Loading branch information
jnicklas committed May 14, 2011
2 parents 8c652a8 + 84d0f66 commit 58c8141
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions spec/spec_helper.rb
Expand Up @@ -5,6 +5,15 @@

require 'rspec'
require 'capybara'

RSpec.configure do |config|
config.before do
Capybara.configure do |config|
config.default_selector = :xpath
end
end
end

require 'capybara/spec/driver'
require 'capybara/spec/session'

Expand All @@ -15,12 +24,4 @@
module TestSessions
RackTest = Capybara::Session.new(:rack_test, TestApp)
Selenium = Capybara::Session.new(:selenium, TestApp)
end

RSpec.configure do |config|
config.before do
Capybara.configure do |config|
config.default_selector = :xpath
end
end
end
end

0 comments on commit 58c8141

Please sign in to comment.