Sha256: 064bddea1022bb2571f0bdc22cffb8ce4803d95c1daf408ea895f385dac139f3
Contents?: true
Size: 1.05 KB
Versions: 2
Compression:
Stored size: 1.05 KB
Contents
require 'test_helper' require 'capistrano/configuration' require 'honeybadger/capistrano' class CapistranoTest < Honeybadger::UnitTest def setup super reset_config @configuration = Capistrano::Configuration.new Honeybadger::Capistrano.load_into(@configuration) @configuration.dry_run = true end should "define honeybadger:deploy task" do assert_not_nil @configuration.find_task('honeybadger:deploy') end should "log when calling honeybadger:deploy task" do @configuration.set(:current_revision, '084505b1c0e0bcf1526e673bb6ac99fbcb18aecc') @configuration.set(:repository, 'repository') @configuration.set(:current_release, '/home/deploy/rails_app/hoptoad') io = StringIO.new logger = Capistrano::Logger.new(:output => io) logger.level = Capistrano::Logger::MAX_LEVEL @configuration.logger = logger @configuration.find_and_execute_task('honeybadger:deploy') assert io.string.include?('** Notifying Honeybadger of Deploy') assert io.string.include?('** Honeybadger Notification Complete') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
honeybadger-1.1.0 | test/unit/capistrano_test.rb |
honeybadger-1.0.0 | test/unit/capistrano_test.rb |