Changeset 278
- Timestamp:
- 03/14/08 09:22:00 (5 months ago)
- Files:
-
- incubator/cc_campfire_notifier/campfire_notifier.rb (modified) (1 diff)
- incubator/cc_campfire_notifier/HISTORY (modified) (1 diff)
- incubator/cc_campfire_notifier/test/campfire_notifier_test.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
incubator/cc_campfire_notifier/campfire_notifier.rb
r203 r278 33 33 clear_flag 34 34 build_text = "Build #{build.label}" 35 speak(build.failed? ? "#{build_text} broken" : "#{build_text} successful") 35 build_text << (build.failed? ? " broken" : " successful") 36 build_text << "\nSee #{build.url} for details" 37 speak(build_text) 36 38 end 37 39 incubator/cc_campfire_notifier/HISTORY
r204 r278 3 3 * apr_error are also SVN errors (BUG FIX) 4 4 * doesn't spam campfire when the build loop breaks (BUG FIX) 5 * Include link back to build report incubator/cc_campfire_notifier/test/campfire_notifier_test.rb
r204 r278 15 15 it "speaks when the build is successful" do 16 16 notifier = CampfireNotifier.new 17 build = stub(:label => "label", :failed? => false )18 notifier.expects(:speak).with("Build label successful ")17 build = stub(:label => "label", :failed? => false, :url => "http://cc.project.com/builds/Project/label") 18 notifier.expects(:speak).with("Build label successful\nSee http://cc.project.com/builds/Project/label for details") 19 19 notifier.expects(:clear_flag) 20 20 notifier.build_finished(build) … … 22 22 it "speaks when the build fails" do 23 23 notifier = CampfireNotifier.new 24 build = stub(:label => "label", :failed? => true )25 notifier.expects(:speak).with("Build label broken ")24 build = stub(:label => "label", :failed? => true, :url => "http://cc.project.com/builds/Project/label") 25 notifier.expects(:speak).with("Build label broken\nSee http://cc.project.com/builds/Project/label for details") 26 26 notifier.expects(:clear_flag) 27 27 notifier.build_finished(build)
