Sha256: 872f63874b6ddcc45342c945d2c34ab2ef841a5d50f0fc80189d6caafc273112

Contents?: true

Size: 499 Bytes

Versions: 12

Compression:

Stored size: 499 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
end

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
pivotal-tracker-0.5.3 spec/pivotal-tracker/task_spec.rb
pivotal-tracker-0.5.1 spec/unit/pivotal-tracker/task_spec.rb
pivotal-tracker-0.5.0 spec/unit/pivotal-tracker/task_spec.rb
pivotal-tracker-0.4.1 spec/unit/pivotal-tracker/task_spec.rb
pivotal-tracker-0.4.0 spec/unit/pivotal-tracker/task_spec.rb
tsenart-pivotal-tracker-0.5.0 spec/unit/pivotal-tracker/task_spec.rb
tsenart-pivotal-tracker-0.4.0 spec/unit/pivotal-tracker/task_spec.rb
topprospect-pivotal-tracker-0.1.1 spec/unit/pivotal-tracker/task_spec.rb
topprospect-pivotal-tracker-0.0.1 spec/unit/pivotal-tracker/task_spec.rb
pivotal-tracker-0.3.1 spec/unit/pivotal-tracker/task_spec.rb
pivotal-tracker-0.3.0 spec/unit/pivotal-tracker/task_spec.rb
pivotal-tracker-0.2.2 spec/unit/pivotal-tracker/task_spec.rb