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.11 test/deploy/scm/accurev_test.rb
capistrano-2.15.10 test/deploy/scm/accurev_test.rb
capistrano-2.15.9 test/deploy/scm/accurev_test.rb
wulffeld-capistrano-2.5.8.3 test/deploy/scm/accurev_test.rb
capistrano-2.15.8 test/deploy/scm/accurev_test.rb
capistrano-2.5.22 test/deploy/scm/accurev_test.rb
capistrano-2.15.7 test/deploy/scm/accurev_test.rb
capistrano-2.15.6 test/deploy/scm/accurev_test.rb
dan-capistrano-2.5.6 test/deploy/scm/accurev_test.rb
fotonauts-capistrano-2.5.2 test/deploy/scm/accurev_test.rb
mbailey-capistrano-2.5.5 test/deploy/scm/accurev_test.rb
mbailey-capistrano-2.5.6 test/deploy/scm/accurev_test.rb
mbailey-capistrano-2.5.7 test/deploy/scm/accurev_test.rb
sneakin-capistrano-2.5.5 test/deploy/scm/accurev_test.rb
thoughtbot-capistrano-2.5.5 test/deploy/scm/accurev_test.rb
thoughtbot-capistrano-2.5.6 test/deploy/scm/accurev_test.rb
wulffeld-capistrano-2.5.8.1 test/deploy/scm/accurev_test.rb
wulffeld-capistrano-2.5.8 test/deploy/scm/accurev_test.rb
capistrano-2.15.5 test/deploy/scm/accurev_test.rb
minmb-capistrano-2.15.4 test/deploy/scm/accurev_test.rb