Sha256: 2a95906d2bc34714e6835e06d51d58602729f8e4f2eeb04093cb0d717ce22cc1

Contents?: true

Size: 628 Bytes

Versions: 6

Compression:

Stored size: 628 Bytes

Contents

require "bundler"
Bundler.setup

require "minitest/autorun"
require "minitest/reporters"

require "fakefs/safe"
require "ostruct"
require "pathname"
require "stringio"

Minitest::Reporters.use! Minitest::Reporters::DefaultReporter.new

require_relative "../lib/truck"

$LOAD_PATH << "test/support"

Minitest::Test.class_eval do
  autoload :FakesFilesystem, "fakes_filesystem"
  autoload :TestsAutoloading, "tests_autoloading"

  def after_teardown
    Truck.shutdown!
  end
end

class Binding
  def method_missing(sym, *)
    return super unless sym == :pry
    FakeFS.without do
      require 'pry'
      pry
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
truck-0.8.6 test/test_helper.rb
truck-0.8.4 test/test_helper.rb
truck-0.8.3 test/test_helper.rb
truck-0.8.2 test/test_helper.rb
truck-0.8.1 test/test_helper.rb
truck-0.8.0 test/test_helper.rb