spec/helpers.rb in loggability-0.14.0 vs spec/helpers.rb in loggability-0.15.0.pre20190714094638

- old
+ new

@@ -1,18 +1,9 @@ -#!/usr/bin/env ruby +# -*- ruby -*- # vim: set nosta noet ts=4 sw=4: -# encoding: utf-8 +# frozen_string_literal: true -BEGIN { - require 'pathname' - basedir = Pathname.new( __FILE__ ).dirname.parent - - libdir = basedir + "lib" - - $LOAD_PATH.unshift( libdir.to_s ) unless $LOAD_PATH.include?( libdir.to_s ) -} - # SimpleCov test coverage reporting; enable this using the :coverage rake task if ENV['COVERAGE'] $stderr.puts "\n\n>>> Enabling coverage report.\n\n" require 'simplecov' SimpleCov.start do @@ -23,9 +14,10 @@ begin require 'configurability' rescue LoadError end +require 'timecop' require 'loggability' require 'loggability/spechelpers' # Helpers specific to Loggability specs