diff --git a/lib/normalizy/rspec/matcher.rb b/lib/normalizy/rspec/matcher.rb index 427c144..3501016 100644 --- a/lib/normalizy/rspec/matcher.rb +++ b/lib/normalizy/rspec/matcher.rb @@ -58,7 +58,7 @@ def matches?(subject) else @subject.send :"#{@attribute}=", @from - @subject[@attribute] == @to + @subject.send(@attribute) == @to end end