Sha256: 1a601e88302891f6ea16b1638bd915d7e8186193d4d711c5eea10c6778d54705

Contents?: true

Size: 422 Bytes

Versions: 7

Compression:

Stored size: 422 Bytes

Contents

$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)

require 'rspec'
require 'aigu'

RSpec.configure do |config|
  config.before(:suite) do
    module Kernel
      def puts(*)
        # Silence “puts” calls — we don’t want to write anything to STDOUT when
        # running the test suite.
      end
    end
  end
end

class String
  def unindent
    gsub(/^#{scan(/^\s*/).min_by(&:length)}/, '')
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
aigu-1.2 spec/spec_helper.rb
aigu-1.1.1 spec/spec_helper.rb
aigu-1.1 spec/spec_helper.rb
aigu-1.0.3 spec/spec_helper.rb
aigu-1.0.2 spec/spec_helper.rb
aigu-1.0.1 spec/spec_helper.rb
aigu-1.0 spec/spec_helper.rb