diff options
author | eileencodes <eileencodes@gmail.com> | 2017-03-17 08:18:55 -0400 |
---|---|---|
committer | eileencodes <eileencodes@gmail.com> | 2017-03-17 08:22:22 -0400 |
commit | eadbc82c47fd157ed4f1eb4c4983ab0734023106 (patch) | |
tree | 5baec46cb4c95e32066c34f1d6e4a400a103e8a1 /actionpack/lib | |
parent | 0a4d1c3cdeaf387b4cb4288462084c8ee1a9b039 (diff) | |
download | rails-eadbc82c47fd157ed4f1eb4c4983ab0734023106.tar.gz rails-eadbc82c47fd157ed4f1eb4c4983ab0734023106.tar.bz2 rails-eadbc82c47fd157ed4f1eb4c4983ab0734023106.zip |
Bump Capybara and include Minitest::Assertions
Capybara was updated in teamcapybara/capybara#1841 to use Minitest style
assertions so that system test output shows x number of assertions, x
numbe of failures, etc.
Before:
```
6 runs, 0 assertions, 0 failures, 0 errors, 0 skips
```
After:
```
6 runs, 7 assertions, 1 failures, 0 errors, 0 skips
```
This change bumps Capybara from 2.7.0 to 2.13.0 and includes the
required minitest assertion file in the test case. :tada:
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/system_test_case.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/system_test_case.rb b/actionpack/lib/action_dispatch/system_test_case.rb index 1bf47d2556..903dac7a71 100644 --- a/actionpack/lib/action_dispatch/system_test_case.rb +++ b/actionpack/lib/action_dispatch/system_test_case.rb @@ -1,4 +1,5 @@ require "capybara/dsl" +require "capybara/minitest" require "action_controller" require "action_dispatch/system_testing/driver" require "action_dispatch/system_testing/server" @@ -80,6 +81,7 @@ module ActionDispatch # tests as long as you include the required gems and files. class SystemTestCase < IntegrationTest include Capybara::DSL + include Capybara::Minitest::Assertions include SystemTesting::TestHelpers::SetupAndTeardown include SystemTesting::TestHelpers::ScreenshotHelper |