Sha256: 84220c204ad7e83ba17770ecc038cb4d9a274d695dd1ced2b17c7e6a679f5ce1
Contents?: true
Size: 470 Bytes
Versions: 4
Compression:
Stored size: 470 Bytes
Contents
require 'spec_helper' module Tasuku 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
4 entries across 4 versions & 1 rubygems