Sha256: 540151f2ad049aff3758a24ff82638d06a80f09b7f787704db46fda30f4ddc63

Contents?: true

Size: 1.22 KB

Versions: 10

Compression:

Stored size: 1.22 KB

Contents

require 'spec_helper'

describe PivotalTracker::Iteration do
  before do
    @project = PivotalTracker::Project.find(PROJECT_ID)
  end

  describe ".all" do
    before do
      @iterations = PivotalTracker::Iteration.all(@project)
    end

    it "should return an array of Iterations for the given Project" do
      @iterations.should be_a(Array)
      @iterations.first.should be_a(PivotalTracker::Iteration)
    end
  end

  describe ".current" do
    before do
      @iteration = PivotalTracker::Iteration.current(@project)
    end

    it "should return a single Iteration" do
      @iteration.should be_a(PivotalTracker::Iteration)
    end
  end

  describe ".backlog" do
    before do
      @iterations = PivotalTracker::Iteration.backlog(@project)
    end

    it "should return an array of Iterations for the given Project" do
      @iterations.should be_a(Array)
      @iterations.first.should be_a(PivotalTracker::Iteration)
    end
  end

  describe ".done" do
    before do
      @iterations = PivotalTracker::Iteration.done(@project)
    end

    it "should return an array of Iterations for the given Project" do
      @iterations.should be_a(Array)
      @iterations.first.should be_a(PivotalTracker::Iteration)
    end
  end

end

Version data entries

10 entries across 10 versions & 3 rubygems

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