Sha256: b5d1038216ef748d01ca505847a17154e26e4cefc8a137d75e459759287916f4
Contents?: true
Size: 469 Bytes
Versions: 1
Compression:
Stored size: 469 Bytes
Contents
require 'spec_helper' module Tasks describe Taskables::Verification do describe 'uniqueness validation on verifiable' do let(:article) { create :article } let(:duplicate) { build :verification, verifiable: article } before do create :verification, verifiable: article end it 'prohibits saving multiple verifications for the same verifiable' do expect(duplicate).not_to be_valid end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tasuku-0.0.1 | spec/models/tasks/taskables/verification_spec.rb |