Skip to content

Commit

Permalink
don't warn about campfire configuration in test environment
Browse files Browse the repository at this point in the history
  • Loading branch information
rtomayko committed Oct 15, 2010
1 parent 5320cfa commit 0153342
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cijoe/campfire.rb
Expand Up @@ -11,7 +11,7 @@ def self.activate(project_path)
end

puts "Loaded Campfire notifier"
else
elsif ENV['RACK_ENV'] != 'test'
puts "Can't load Campfire notifier."
puts "Please add the following to your project's .git/config:"
puts "[campfire]"
Expand Down
2 changes: 2 additions & 0 deletions test/helper.rb
@@ -1,6 +1,8 @@
require 'rubygems'
require 'test/unit'

ENV['RACK_ENV'] = 'test'

$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'cijoe'
Expand Down

0 comments on commit 0153342

Please sign in to comment.