Sha256: 34e63bdeb0710216843491df6c287580d6f2f5f24bd34c611b9926e3d72e9f9f
Contents?: true
Size: 1.84 KB
Versions: 8
Compression:
Stored size: 1.84 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 describe ".team_strength" do before do @iteration = PivotalTracker::Iteration.current(@project) end it "should return a Float" do @iteration.should respond_to(:team_strength) @iteration.team_strength.should be_a(Float) end end end
Version data entries
8 entries across 8 versions & 2 rubygems