Skip to content

Commit

Permalink
Ensure tests work with mocha 1.5.0
Browse files Browse the repository at this point in the history
Fixes 2 issues:

```
`require': `require 'mocha/mini_test'` has been deprecated. Please use `require 'mocha/minitest' instead.
```

and

```
BootstrapFormGroupTest#test_help_messages_to_warn_about_deprecated_I18n_key:
Mocha::NotInitializedError: Mocha methods cannot be used outside the context of a test
```
  • Loading branch information
mattbrictson committed Apr 13, 2018
1 parent 3b3b211 commit 1eca8c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
require 'diffy'
require 'nokogiri'
require 'equivalent-xml'
require 'mocha/mini_test'

require_relative "../demo/config/environment.rb"
require "rails/test_help"
require 'mocha/minitest'

Rails.backtrace_cleaner.remove_silencers!

Expand Down

0 comments on commit 1eca8c4

Please sign in to comment.