blob: c9389b83ecc4731ab4f69c5a90a5d672c5ac4cc0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
require "capybara/dsl"
require "action_system_test/test_helpers"
module ActionSystemTest
module TestHelper # :nodoc:
include TestHelpers::Assertions
include TestHelpers::FormHelper
include TestHelpers::ScreenshotHelper
include Capybara::DSL
Capybara.app = Rack::Builder.new do
map "/" do
run Rails.application
end
end
def after_teardown
Capybara.reset_sessions!
super
end
end
end
|