Skip to content

Commit

Permalink
Fix active_model require in webchat test
Browse files Browse the repository at this point in the history
Before:

```
bundle exec rails test test/models/webchat_test.rb:20
Started with run options --seed 46747

WebchatTest
  test_should_return_error_if_config_is_invalid                  ERROR (0.00s)
Minitest::UnexpectedError:         NameError: uninitialized constant ActiveModel::ValidationError
            test/models/webchat_test.rb:25:in `block in <class:WebchatTest>'

Finished in 0.00445s
1 tests, 0 assertions, 0 failures, 1 errors, 0 skips
```

After:

```
bundle exec rails test test/models/webchat_test.rb:20
Started with run options --seed 32937

WebchatTest
  test_should_return_error_if_config_is_invalid                   PASS (1.28s)

Finished in 1.28149s
1 tests, 1 assertions, 0 failures, 0 errors, 0 skips
```
  • Loading branch information
sihugh committed Jun 2, 2020
1 parent 547a4b3 commit b95ef42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/models/webchat_test.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require "test_helper"
require "active_model"
require "active_model/validations"

class WebchatTest < ActiveSupport::TestCase
webchat_config = {
Expand Down

0 comments on commit b95ef42

Please sign in to comment.