From b95ef42f223f66999d9b2ff9857d8a8ba7540278 Mon Sep 17 00:00:00 2001 From: Simon Hughesdon Date: Tue, 2 Jun 2020 13:27:27 +0100 Subject: [PATCH] Fix active_model require in webchat test 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 ' 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 ``` --- test/models/webchat_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/models/webchat_test.rb b/test/models/webchat_test.rb index 924cc821d..c5215c69d 100644 --- a/test/models/webchat_test.rb +++ b/test/models/webchat_test.rb @@ -1,5 +1,5 @@ require "test_helper" -require "active_model" +require "active_model/validations" class WebchatTest < ActiveSupport::TestCase webchat_config = {