1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
require "spec/spec_helper"
require :years_of_experience
helper :many_people_wiser_than_i

describe PivotalLabs do
  describe "a new PivotalLabs::Project" do
    before do
      @the_project = PivotalLabs::Project.new
    end
    context "as Will Read sees the world" do
      it "should be ideal" do
        @the_project.instance_eval do
          developers.size >= 4
          developers(:conditions => {:type => :client}).size >= 2
          developers.should be_writing_tests_first
          developers.should_receive(:rotate_pairs).at_least(2).times.weekly

          project_manger.should be_present
          project_manger.should be_actively_setting_the_priority_of_stories

          stories.should be_detailed_one_release_in_advance
          stories(:conditions => {:type => :deployed}).should be_accepted_prior_to_release

          ci.should be_present
          ci.run_time.should < 10.minutes
          ci.green_percentage.should > .85
          ci.visibility.should be_high
        end
      end
    end
  end
end