Sha256: c66ea0aa5368ef87c2c9aacddc12f604edcc3795ccfa9acca68616e800765686

Contents?: true

Size: 284 Bytes

Versions: 1

Compression:

Stored size: 284 Bytes

Contents

require 'coveralls'
Coveralls.wear!

require 'puppet-lint'
PuppetLint::Plugins.load_spec_helper

# strip left spaces from heredoc
# this emulates the behaviour of the ~ heredoc from ruby 2.3
class String
  def strip_heredoc
    gsub(/^#{scan(/^\s*/).min_by(&:length)}/, '')
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
puppet-lint-topscope-variable-check-1.0.1 spec/spec_helper.rb