Sha256: 02342fec6c28f1797dde16b0290b08e441f595ceda25a83011194640c0b6ffb8
Contents?: true
Size: 818 Bytes
Versions: 10
Compression:
Stored size: 818 Bytes
Contents
require 'spec_helper' describe PivotalTracker::Task do before do @project = PivotalTracker::Project.find(102622) @story = @project.stories.find(4459994) end context ".all" do it "should return an array of tasks" do @story.tasks.all.should be_a(Array) @story.tasks.all.first.should be_a(PivotalTracker::Task) end end context ".find" do it "should return a given task" do @story.tasks.find(468113).should be_a(PivotalTracker::Task) end end context ".create" do it "should return the created task" do @story.tasks.create(:description => 'Test task') end end context '.update' do it "should return the updated task" do @story.tasks.find(468113).update(:description => 'Test task').description.should == 'Test task' end end end
Version data entries
10 entries across 10 versions & 2 rubygems