diff options
author | Jamis Buck <jamis@37signals.com> | 2005-08-24 15:15:23 +0000 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2005-08-24 15:15:23 +0000 |
commit | affb615a8a5da2d41383741fd51871261550925e (patch) | |
tree | f390067921b08b5609ee1b7bd2e0318e6369331a /switchtower/test/configuration_test.rb | |
parent | 6a4d4460ea2569d3bb54e1e75fad945c361cbc9b (diff) | |
download | rails-affb615a8a5da2d41383741fd51871261550925e.tar.gz rails-affb615a8a5da2d41383741fd51871261550925e.tar.bz2 rails-affb615a8a5da2d41383741fd51871261550925e.zip |
SwitchTower: use a timestamp as the release name, instead of the revision number. Various tweaks and fixes to the supported scm modules.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2046 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'switchtower/test/configuration_test.rb')
-rw-r--r-- | switchtower/test/configuration_test.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/switchtower/test/configuration_test.rb b/switchtower/test/configuration_test.rb index 2ec299ab6d..ecbc0a5607 100644 --- a/switchtower/test/configuration_test.rb +++ b/switchtower/test/configuration_test.rb @@ -18,7 +18,6 @@ class ConfigurationTest < Test::Unit::TestCase class MockSCM attr_reader :configuration - attr_accessor :latest_revision def initialize(config) @configuration = config @@ -184,8 +183,7 @@ class ConfigurationTest < Test::Unit::TestCase def test_release_path_implicit @config.set :deploy_to, "/start/of/path" - @config.source.latest_revision = 2257 - assert_equal "/start/of/path/releases/2257", @config.release_path + assert_equal "/start/of/path/releases/#{@config.now.strftime("%Y%m%d%H%M%S")}", @config.release_path end def test_release_path_explicit |