Sha256: f179503c6090f05bbeb557dfb557789d480269cc255e2e0c33febe4a105ccae9

Contents?: true

Size: 483 Bytes

Versions: 1

Compression:

Stored size: 483 Bytes

Contents

require 'magic_test/support'
require 'pry'
require 'pry-stack_explorer'

module MagicTest
  class Engine < Rails::Engine
    config.after_initialize do
      if ENV['MAGIC_TEST'].present?
        if defined? ActionDispatch::SystemTestCase
          ActionDispatch::SystemTestCase.include MagicTest::Support
        end

        if defined? ActionDispatch::IntegrationTest
          ActionDispatch::IntegrationTest.include MagicTest::Support
        end


      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
magic_test-0.0.4 lib/magic_test/engine.rb