spec/tram/policy_spec.rb in tram-policy-1.0.1 vs spec/tram/policy_spec.rb in tram-policy-2.0.0
- old
+ new
@@ -61,11 +61,11 @@
end
describe "#errors" do
subject { policy.errors }
- its(:class) { is_expected.to eq Tram::Policy::Errors }
- its(:policy) { is_expected.to eql policy }
+ its(:class) { is_expected.to eq Tram::Policy::Errors }
+ its(:scope) { is_expected.to eql policy.scope }
end
describe "#valid?" do
context "when #errors are present" do
subject { policy.valid? }