spec/integration/guard_spec.rb in assertion-0.2.2 vs spec/integration/guard_spec.rb in assertion-0.2.3

- old
+ new

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