Sha256: bb720524b3b7d603856c6920f26d59e0cc766ab2b17bc0dada0a292560b56417
Contents?: true
Size: 441 Bytes
Versions: 1
Compression:
Stored size: 441 Bytes
Contents
require 'spec_helper' module Tasks describe Task do describe "#completed_by" do let!(:user) { create :user } let!(:task) {create(:text_task)} let!(:subject) do create( :tasks_taskables_text_response, author: user, request: task.taskable ) end it "returs completed tasks" do expect(Tasks::Task.completed_by(user)).to eq([task]) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tasuku-0.0.1 | spec/models/tasks/task_spec.rb |