Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/encoding/find_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down