Sha256: 4f9814ae3eebf6a6c19dcc58b119257b403f33acbd7e0cf58d162002f8c9d877

Contents?: true

Size: 659 Bytes

Versions: 4

Compression:

Stored size: 659 Bytes

Contents

require 'spec_helper'

module Tasuku
  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

4 entries across 4 versions & 1 rubygems

Version Path
tasuku-1.1.0 spec/lib/tasuku/concerns/verifiable_spec.rb
tasuku-1.0.1 spec/lib/tasuku/concerns/verifiable_spec.rb
tasuku-0.1.1 spec/lib/tasuku/concerns/verifiable_spec.rb
tasuku-0.1.0 spec/lib/tasuku/concerns/verifiable_spec.rb