Sha256: 01f3cdc741ea57d01042038bbc97c3e415913ed0f2967b13e21bf168eb10dc40
Contents?: true
Size: 658 Bytes
Versions: 1
Compression:
Stored size: 658 Bytes
Contents
require 'spec_helper' module Tasks describe Concerns::Verifiable do let!(:user) { create :user } let!(:article) { create :article } let!(:task) { create :task } let!(:verification) { create :verification, task: task, verifiable: article } let!(:confirmation) { create :verification_confirmation, author: user, verification: verification } it 'has a verification' do expect(article.verification).to eq verification end it 'has a task' do expect(article.task).to eq task end it 'has many confirmations' do expect(article.confirmations).to eq [confirmation] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tasuku-0.0.1 | spec/lib/tasks/concerns/verifiable_spec.rb |