Sha256: e56c57090edbaac95d455cb5ea5c292b13d747ad6cd2e7040dfcc1791c958d53

Contents?: true

Size: 1.57 KB

Versions: 4

Compression:

Stored size: 1.57 KB

Contents

require 'spec_helper'

describe PivotalTracker::Iteration do
  before do
    PivotalTracker::Client.token = TOKEN
    @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
  
  describe ".current_backlog" do
    before do
      @iterations = PivotalTracker::Iteration.current_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
  

end

Version data entries

4 entries across 4 versions & 1 rubygems

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