Skip to content

Commit

Permalink
Avoid modification of string literal in sequel plugin spec
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed May 22, 2024
1 parent 5cff8c8 commit 9a26191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/sequel_plugin_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def s.humanize; 'X' end
end

it "should have humanize handle objects that support #humanize" do
s = 'x_b_id'
s = 'x_b_id'.dup
class << s
undef :humanize if method_defined?(:humanize)
end
Expand Down

0 comments on commit 9a26191

Please sign in to comment.