Sha256: 5a1556a40e5a6069e93e60b1500dda7e6af6110b0d9d737be388ee670d16f18c

Contents?: true

Size: 546 Bytes

Versions: 1

Compression:

Stored size: 546 Bytes

Contents

require File.join(File.dirname(__FILE__), '..', '..', '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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pivotal-tracker-0.2.1 spec/unit/pivotal-tracker/task_spec.rb