Sha256: 7c5cddeb577705da5983470d519b5e0facd15259947821bc259c766b7d99b34b

Contents?: true

Size: 1.26 KB

Versions: 3

Compression:

Stored size: 1.26 KB

Contents

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

3 entries across 3 versions & 1 rubygems

Version Path
pivotal-tracker-0.2.1 spec/unit/pivotal-tracker/iteration_spec.rb
pivotal-tracker-0.2.0 spec/unit/pivotal-tracker/iteration_spec.rb
pivotal-tracker-0.1.3 spec/unit/pivotal-tracker/iteration_spec.rb