fix last commit for non-js tests

This commit is contained in:
wvengen 2013-10-30 01:28:59 +01:00
parent 042fbdc3a3
commit e883f4cfa7

View file

@ -30,7 +30,7 @@ RSpec.configure do |config|
DatabaseCleaner.strategy = (example.metadata[:js] ? :truncation : :transaction)
DatabaseCleaner.start
# maximise window so that buttons can be found on popups
page.driver.browser.manage.window.maximize
example.metadata[:js] and page.driver.browser.manage.window.maximize
end
config.after(:each) do
DatabaseCleaner.clean