Sha256: d74befc7699e0f279d60420bc4fb29797cf0362618fd532338e00965d3837e74

Contents?: true

Size: 758 Bytes

Versions: 96

Compression:

Stored size: 758 Bytes

Contents

require "utils"
require 'capistrano/recipes/deploy/scm/accurev'

class AccurevTest < Test::Unit::TestCase
  include Capistrano::Deploy::SCM

  def test_internal_revision_to_s
    assert_equal 'foo/1', Accurev::InternalRevision.new('foo', 1).to_s
    assert_equal 'foo/highest', Accurev::InternalRevision.new('foo', 'highest').to_s
  end

  def test_internal_revision_parse
    revision = Accurev::InternalRevision.parse('foo')
    assert_equal 'foo', revision.stream
    assert_equal 'highest', revision.transaction_id
    assert_equal 'foo/highest', revision.to_s

    revision = Accurev::InternalRevision.parse('foo/1')
    assert_equal 'foo', revision.stream
    assert_equal '1', revision.transaction_id
    assert_equal 'foo/1', revision.to_s
  end
end

Version data entries

96 entries across 96 versions & 11 rubygems

Version Path
capistrano-2.15.4 test/deploy/scm/accurev_test.rb
capistrano-2.15.3 test/deploy/scm/accurev_test.rb
capistrano-2.15.2 test/deploy/scm/accurev_test.rb
capistrano-2.15.0 test/deploy/scm/accurev_test.rb
capistrano-2.15.1 test/deploy/scm/accurev_test.rb
capistrano-2.14.2 test/deploy/scm/accurev_test.rb
capistrano-2.14.1 test/deploy/scm/accurev_test.rb
capistrano-2.13.5 test/deploy/scm/accurev_test.rb
HeSYINUvSBZfxqA-capistrano-2.5.28 test/deploy/scm/accurev_test.rb
HeSYINUvSBZfxqA-capistrano-2.5.27 test/deploy/scm/accurev_test.rb
HeSYINUvSBZfxqA-capistrano-2.5.26 test/deploy/scm/accurev_test.rb
HeSYINUvSBZfxqA-capistrano-2.5.25 test/deploy/scm/accurev_test.rb
HeSYINUvSBZfxqA-capistrano-2.5.24 test/deploy/scm/accurev_test.rb
capistrano-2.12.0 test/deploy/scm/accurev_test.rb
capistrano-2.11.2 test/deploy/scm/accurev_test.rb
HeSYINUvSBZfxqA-capistrano-2.5.23 test/deploy/scm/accurev_test.rb
HeSYINUvSBZfxqA-capistrano-2.5.22 test/deploy/scm/accurev_test.rb
HeSYINUvSBZfxqA-capistrano-2.5.21 test/deploy/scm/accurev_test.rb
capistrano-2.9.0 test/deploy/scm/accurev_test.rb
capistrano-2.8.0 test/deploy/scm/accurev_test.rb