diff options
author | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-02-17 00:45:17 +0200 |
---|---|---|
committer | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-02-17 17:48:10 +0200 |
commit | 67391879f606e4ad9ef64210a23431e071b3df8c (patch) | |
tree | d243d580d54c9d8d0857d97b5e03915509914922 /activejob | |
parent | 30528cda9e30e42915f3a0fa204d822ce013c168 (diff) | |
download | rails-67391879f606e4ad9ef64210a23431e071b3df8c.tar.gz rails-67391879f606e4ad9ef64210a23431e071b3df8c.tar.bz2 rails-67391879f606e4ad9ef64210a23431e071b3df8c.zip |
Fix error message about unknown `ActiveJob` argument serializer
Diffstat (limited to 'activejob')
-rw-r--r-- | activejob/lib/active_job/serializers.rb | 2 | ||||
-rw-r--r-- | activejob/test/cases/serializers_test.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/activejob/lib/active_job/serializers.rb b/activejob/lib/active_job/serializers.rb index ec223440e3..df66e66659 100644 --- a/activejob/lib/active_job/serializers.rb +++ b/activejob/lib/active_job/serializers.rb @@ -38,7 +38,7 @@ module ActiveJob raise ArgumentError, "Serializer name is not present in the argument: #{argument.inspect}" unless serializer_name serializer = serializer_name.safe_constantize - raise ArgumentError, "Serializer #{serializer_name} is not know" unless serializer + raise ArgumentError, "Serializer #{serializer_name} is not known" unless serializer serializer.deserialize(argument) end diff --git a/activejob/test/cases/serializers_test.rb b/activejob/test/cases/serializers_test.rb index a86f168d03..bee0c061bd 100644 --- a/activejob/test/cases/serializers_test.rb +++ b/activejob/test/cases/serializers_test.rb @@ -73,7 +73,7 @@ class SerializersTest < ActiveSupport::TestCase ActiveJob::Serializers.deserialize(hash) end assert_equal( - "Serializer DoNotExist is not know", + "Serializer DoNotExist is not known", error.message ) end |