Skip to content

Commit b19962a

Browse files
authored
Merge pull request #887 from yahonda/hash_inspect
Support Ruby 3.4 `Hash#inspect` change
2 parents 4375b52 + 9d7aef1 commit b19962a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/thor_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -767,15 +767,15 @@ def hi(name)
767767
Class.new(Thor) do
768768
method_option loud: true, type: :boolean
769769
end
770-
end.to raise_error(ArgumentError, "Expected a Symbol or String, got {:loud=>true, :type=>:boolean}")
770+
end.to raise_error(ArgumentError, "Expected a Symbol or String, got #{{loud: true, type: :boolean}}")
771771
end
772772

773773
it "class_option raises an ArgumentError if name is not a Symbol or String" do
774774
expect do
775775
Class.new(Thor) do
776776
class_option loud: true, type: :boolean
777777
end
778-
end.to raise_error(ArgumentError, "Expected a Symbol or String, got {:loud=>true, :type=>:boolean}")
778+
end.to raise_error(ArgumentError, "Expected a Symbol or String, got #{{loud: true, type: :boolean}}")
779779
end
780780

781781
it "passes through unknown options" do

0 commit comments

Comments
 (0)