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:
parent
852737b40c
commit
cca6f5e121
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue