1
0
Fork 0
mirror of https://github.com/twbs/bootstrap-sass.git synced 2022-11-09 12:27:02 -05:00

clear cache before running

This commit is contained in:
Gleb Mazovetskiy 2013-09-10 18:01:56 +02:00
parent 852737b40c
commit cca6f5e121
2 changed files with 7 additions and 1 deletions

View file

@ -7,7 +7,7 @@ class PagesTest < ActionDispatch::IntegrationTest
visit root_path visit root_path
# ^ will raise on JS errors # ^ will raise on JS errors
assert_equal page.status_code, 200 assert_equal 200, page.status_code
screenshot! screenshot!
end end

View file

@ -2,7 +2,13 @@ require 'capybara'
module IntegrationTest module IntegrationTest
include Capybara::DSL include Capybara::DSL
def setup
super
%x[rm -rf test/dummy/tmp/cache]
end
def teardown def teardown
super
Capybara.reset_sessions! Capybara.reset_sessions!
Capybara.use_default_driver Capybara.use_default_driver
end end