Sha256: f0b8bd69435aa2d5a8fbf4c2ba9b10ae93c86c778eef064c2a13561ff3b5a8e2
Contents?: true
Size: 500 Bytes
Versions: 3
Compression:
Stored size: 500 Bytes
Contents
require 'spec_helper' module FinePrint RSpec.describe Signature, type: :model do it "can't be associated with unpublished contracts" do contract = FactoryBot.create(:fine_print_contract) expect(contract.is_published?).to eq false expect(contract.signatures).to be_empty sig = FactoryBot.build(:fine_print_signature) sig.contract = contract expect(sig.save).to eq false contract.reload expect(contract.signatures).to be_empty end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fine_print-6.0.1 | spec/models/signature_spec.rb |
fine_print-6.0.0 | spec/models/signature_spec.rb |
fine_print-5.0.0 | spec/models/signature_spec.rb |