Sha256: e8a1b818945a462a5c9da6f531b85fabfa04d4841ba5078c522a81c135b59632

Contents?: true

Size: 316 Bytes

Versions: 3

Compression:

Stored size: 316 Bytes

Contents

require 'spec_helper'

module ThorSCMVersion
  describe GitVersion do
    it "should detect if a commit is contained on a given branch" do
      ShellUtils.stub(:sh).and_return(<<OUT)
* constrain_bump_to_branch
  master
OUT
      expect(GitVersion.contained_in_current_branch?('0.0.1')).to be_true
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
thor-scmversion-1.7.0 spec/lib/thor-scmversion/git_version_spec.rb
thor-scmversion-1.6.0 spec/lib/thor-scmversion/git_version_spec.rb
thor-scmversion-1.4.0 spec/lib/thor-scmversion/git_version_spec.rb