spec/integration/guard_spec.rb in assertion-0.1.0 vs spec/integration/guard_spec.rb in assertion-0.2.0

- old
+ new

@@ -11,10 +11,10 @@ IsAdult = Assertion.about :name, :age do age.to_i >= 18 end AdultOnly = Assertion.guards :user do - IsAdult[user] + IsAdult[user.to_h] end andrew = OpenStruct.new(name: "Andrew", age: 13, city: "Moscow") andriy = OpenStruct.new(name: "Andriy", age: 28, city: "Kiev")