Skip to content

Commit

Permalink
Fix test failures in Ruby 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
imjoehaines committed Jul 15, 2020
1 parent e74728b commit cb14be5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/cleaner_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,13 @@ def to_s
end

it "cleans custom objects to show the id of the object if object responds to id method" do
class Macaron
class MacaronWithId
def id
10
end
end
a = Macaron.new

a = MacaronWithId.new
expect(subject.clean_object(a)).to eq("[OBJECT]: [Class]: #{a.class.name} [ID]: #{a.id}")
end

Expand Down

0 comments on commit cb14be5

Please sign in to comment.