Sha256: 28d03cc71d7203ce8078cad6f82fc466c8a1e13c70224618f0feb7508cc2e820

Contents?: true

Size: 640 Bytes

Versions: 3

Compression:

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pivotal-tracker-0.5.6 spec/pivotal-tracker/task_spec.rb
pivotal-tracker-0.5.5 spec/pivotal-tracker/task_spec.rb
pivotal-tracker-0.5.4 spec/pivotal-tracker/task_spec.rb