Sha256: 5de38f9e216fece35315b986a8d7d5e84c699c57b8a81077714c3628402ea452

Contents?: true

Size: 577 Bytes

Versions: 6

Compression:

Stored size: 577 Bytes

Contents

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

class DeploySCMPerforceTest < Test::Unit::TestCase
  class TestSCM < Capistrano::Deploy::SCM::Perforce
    default_command "perforce"
  end
  def setup
    @config = { :repository => "." }
    @source = TestSCM.new(@config)
  end

  def test_p4_label
    @config[:p4_label] = "some_p4_label"
    assert_equal "@some_p4_label", @source.send(:rev_no, 'foo')
  end

  def test_p4_label_with_symbol
    @config[:p4_label] = "@some_p4_label"
    assert_equal "@some_p4_label", @source.send(:rev_no, 'foo')
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
capistrano-2.14.2 test/deploy/scm/perforce_test.rb
capistrano-2.14.1 test/deploy/scm/perforce_test.rb
capistrano-2.13.5 test/deploy/scm/perforce_test.rb
capistrano-2.12.0 test/deploy/scm/perforce_test.rb
capistrano-2.11.2 test/deploy/scm/perforce_test.rb
capistrano-2.9.0 test/deploy/scm/perforce_test.rb