1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00
capistrano/test/recipes_test.rb
Lee Hambley d8325fbb10 Add newlines to the end of all files.
git ls-files | xargs sed -i '' -e '$a\'
2013-04-02 21:20:32 +02:00

25 lines
524 B
Ruby

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