Skip to content

Commit

Permalink
Fix visibility of method in inspect_pk spec
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed Nov 30, 2024
1 parent e962f66 commit 17afae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/extensions/inspect_pk_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ def self.name; 'M' end
end

it "should use inspect_pk method to get inspect pk value" do
inspect{def inspect_pk; "2" end}.must_equal "#<M[\"2\"] @values={}>"
inspect{private; def inspect_pk; "2" end}.must_equal "#<M[\"2\"] @values={}>"
end
end

0 comments on commit 17afae1

Please sign in to comment.