Sha256: f424cfcacba330fc3982870adcb8a44ce08ee05165ab866fea18faf29587da88

Contents?: true

Size: 276 Bytes

Versions: 1

Compression:

Stored size: 276 Bytes

Contents

module EnvBranch
  module TestHelper
    module_function

    def stash_env_branch
      @original_travis_branch = ENV['TRAVIS_BRANCH']
      ENV.delete 'TRAVIS_BRANCH'
    end

    def restore_env_branch
      ENV['TRAVIS_BRANCH'] = @original_travis_branch
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
env_branch-0.1.0 lib/env_branch/test_helper.rb