Sha256: 3e29417e512f7a0aa1eb5d059c66d7cc926f9c6716a412bfb50af822fc110c9b

Contents?: true

Size: 524 Bytes

Versions: 13

Compression:

Stored size: 524 Bytes

Contents

require 'utils'
require 'capistrano/configuration'

class RecipesTest < Test::Unit::TestCase

  def setup
    @config = Capistrano::Configuration.new
    @config.stubs(:logger).returns(stub_everything)
  end

  def test_current_releases_does_not_cause_error_on_dry_run
    @config.dry_run = true
    @config.load 'deploy'
    @config.load do
      set :application, "foo"
      task :dry_run_test do
        fetch :current_release
      end
    end

    assert_nothing_raised do
      @config.dry_run_test
    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
capistrano-2.15.11 test/recipes_test.rb
capistrano-2.15.10 test/recipes_test.rb
capistrano-2.15.9 test/recipes_test.rb
capistrano-2.15.8 test/recipes_test.rb
capistrano-2.15.7 test/recipes_test.rb
capistrano-2.15.6 test/recipes_test.rb
capistrano-2.15.5 test/recipes_test.rb
minmb-capistrano-2.15.4 test/recipes_test.rb
capistrano-2.15.4 test/recipes_test.rb
capistrano-2.15.3 test/recipes_test.rb
capistrano-2.15.2 test/recipes_test.rb
capistrano-2.15.0 test/recipes_test.rb
capistrano-2.15.1 test/recipes_test.rb