Sha256: 8c45130328b7833af23400d672ffe478500aab8a627457c41d70761e825d6388

Contents?: true

Size: 438 Bytes

Versions: 3

Compression:

Stored size: 438 Bytes

Contents

require 'magic_test/support'

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

3 entries across 3 versions & 1 rubygems

Version Path
magic_test-0.0.3 lib/magic_test/engine.rb
magic_test-0.0.2 lib/magic_test/engine.rb
magic_test-0.0.1 lib/magic_test/engine.rb