diff --git a/core/encoding/find_spec.rb b/core/encoding/find_spec.rb index 8a0873070f..9c34fe0e77 100644 --- a/core/encoding/find_spec.rb +++ b/core/encoding/find_spec.rb @@ -50,7 +50,7 @@ def to_str; @encoding_name; end end it "raises an ArgumentError if the given encoding does not exist" do - -> { Encoding.find('dh2dh278d') }.should raise_error(ArgumentError) + -> { Encoding.find('dh2dh278d') }.should raise_error(ArgumentError, 'unknown encoding name - dh2dh278d') end # Not sure how to do a better test, since locale depends on weird platform-specific stuff