Sha256: 3c7b37a07dc701b28a41f3a77af6e03ecf264a394aaf43bcc37c533c7292676f
Contents?: true
Size: 814 Bytes
Versions: 6
Compression:
Stored size: 814 Bytes
Contents
# encoding: utf-8 # describe #valid_policy and #invalid_policy builders # also describes shared examples for all policies require "support/policies" describe Attestor::Policy::And do subject { described_class.new items } describe ".new" do let(:items) { [valid_policy] } it_behaves_like "creating a node" it_behaves_like "creating an immutable object" end # context describe "#validate" do context "when all the parts are valid" do let(:items) { 3.times.map { valid_policy } } it_behaves_like "passing validation" end # context context "when a part is invalid" do let(:items) { [valid_policy, valid_policy, invalid_policy] } it_behaves_like "failing validation" end # context end # describe #validate end # describe Policy::Base::Not
Version data entries
6 entries across 6 versions & 1 rubygems