Sha256: b811ea6fa41c845b77e5154592ce59aff4cd55fa084deda90b0e82918830bb99

Contents?: true

Size: 403 Bytes

Versions: 2

Compression:

Stored size: 403 Bytes

Contents

require 'spec_helper'

module Tasuku
  describe Task do
    describe "#completed_by" do
      let!(:user)     { create :user }
      let!(:task)     { create(:text_task) }
      let!(:subject) do
        create(:text_response, author: user, request: task.taskable)
      end

      it "returs completed tasks" do
        expect(Tasuku::Task.completed_by(user)).to eq([task])
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tasuku-0.1.1 spec/models/tasuku/task_spec.rb
tasuku-0.1.0 spec/models/tasuku/task_spec.rb