Skip to content

Commit

Permalink
Merge pull request #887 from yahonda/hash_inspect
Browse files Browse the repository at this point in the history
Support Ruby 3.4 `Hash#inspect` change
  • Loading branch information
yahonda authored Oct 30, 2024
2 parents 4375b52 + 9d7aef1 commit b19962a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/thor_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -767,15 +767,15 @@ def hi(name)
Class.new(Thor) do
method_option loud: true, type: :boolean
end
end.to raise_error(ArgumentError, "Expected a Symbol or String, got {:loud=>true, :type=>:boolean}")
end.to raise_error(ArgumentError, "Expected a Symbol or String, got #{{loud: true, type: :boolean}}")
end

it "class_option raises an ArgumentError if name is not a Symbol or String" do
expect do
Class.new(Thor) do
class_option loud: true, type: :boolean
end
end.to raise_error(ArgumentError, "Expected a Symbol or String, got {:loud=>true, :type=>:boolean}")
end.to raise_error(ArgumentError, "Expected a Symbol or String, got #{{loud: true, type: :boolean}}")
end

it "passes through unknown options" do
Expand Down

0 comments on commit b19962a

Please sign in to comment.