Sha256: ef771708bd15e6b90ee6fa4a49086b11c995f70f8e1822888f4e940aaa3f7113

Contents?: true

Size: 729 Bytes

Versions: 10

Compression:

Stored size: 729 Bytes

Contents

require 'spec_helper'

module ThorSCMVersion
  describe GitVersion do
    it 'should take major minor and patch segments on initialization' do
      -> { described_class.new('1', '2', '3') }.should_not raise_error
    end
  end
    
  describe Perforce do
    it 'should set good' do
      described_class.stub(:set) { <<-here }
P4CHARSET=utf8\nP4CLIENT=kallan_mac (config)
P4CONFIG=p4config (config '/Users/kallan/src/kallan_mac/p4config')
P4PORT=perflax01:1666 (config)
P4USER=kallan
here

      described_class.parse_and_set_p4_set
      
      ENV["P4CHARSET"].should == "utf8"
      ENV["P4CONFIG"].should == "p4config"
      ENV["P4PORT"].should == "perflax01:1666"
      ENV["P4USER"].should == "kallan"
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
thor-scmversion-0.2.4 spec/lib/scm_version_spec.rb
thor-scmversion-0.2.3 spec/lib/scm_version_spec.rb
thor-scmversion-0.2.2 spec/lib/scm_version_spec.rb
thor-scmversion-0.2.1 spec/lib/scm_version_spec.rb
thor-scmversion-0.2.0 spec/lib/scm_version_spec.rb
thor-scmversion-0.0.5 spec/lib/scm_version_spec.rb
thor-scmversion-0.0.4 spec/lib/scm_version_spec.rb
thor-scmversion-0.0.3 spec/lib/scm_version_spec.rb
thor-scmversion-0.0.2 spec/lib/scm_version_spec.rb
thor-scmversion-0.0.1 spec/lib/scm_version_spec.rb