spec/authority_spec.rb in authority-2.7.0 vs spec/authority_spec.rb in authority-2.8.0

- old
+ new

@@ -64,10 +64,10 @@ it "raises a SecurityViolation if the action is unauthorized" do expect { Authority.enforce(:update, resource_class, user) }.to raise_error(Authority::SecurityViolation) end it "doesn't raise a SecurityViolation if the action is authorized" do - expect { Authority.enforce(:read, resource_class, user) }.not_to raise_error(Authority::SecurityViolation) + expect { Authority.enforce(:read, resource_class, user) }.not_to raise_error() end end describe Authority::SecurityViolation do