before, not before(:all)

This commit is contained in:
Jonas Nicklas 2010-09-26 17:43:27 +02:00
parent d584bb34e9
commit 0c505d9cee
1 changed files with 4 additions and 7 deletions

View File

@ -1,16 +1,13 @@
require 'spec_helper'
describe Capybara::Driver::Selenium do
before(:all) do
before do
Capybara.app_host = "http://capybara-testapp.heroku.com"
end
after(:all) do
Capybara.app_host = nil
@driver = TestSessions::Selenium.driver
end
before do
@driver = TestSessions::Selenium.driver
after do
Capybara.app_host = nil
end
it_should_behave_like "driver"