Sha256: efe4d2a98912d2a92e388af438791eea34a9cd32e9b1b53259c8723b8d0ff9bf

Contents?: true

Size: 540 Bytes

Versions: 1

Compression:

Stored size: 540 Bytes

Contents

require 'minitest/autorun'
require 'bbq/rails'
require 'action_controller/railtie'

TestCase = begin
  Minitest::Test
rescue NameError
  MiniTest::Unit::TestCase
end

class DummyApplication < ::Rails::Application
  config.eager_load   = false
  config.secret_token = SecureRandom.hex(30)
end

class DummyController < ActionController::Base
  def index
    render text: 'dummy'
  end
end

DummyApplication.initialize!
DummyApplication.routes.draw { root to: 'dummy#index' }
DummyApplication.routes.default_url_options[:host] = 'example.com'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bbq-rails-0.3.0 test/test_helper.rb