Sha256: cd69a4ea17bb8868ba0807633e76e3ff39806974daaa68932b4501f51860c981

Contents?: true

Size: 832 Bytes

Versions: 1

Compression:

Stored size: 832 Bytes

Contents

ENV['RAILS_ENV'] = 'test'
require 'simplecov'

SimpleCov.start do
  add_filter 'test'
  command_name 'Mintest'
end

require 'minitest/autorun'
require 'minitest/spec'
require 'minitest/pride'
require 'sweet_notifications'
require 'active_support/test_case'
require 'securerandom'

class ActiveSupport::TestCase
  class << self
    remove_method :describe
  end

  extend MiniTest::Spec::DSL
  register_spec_type(/ControllerRuntime$/, ActionController::TestCase)
  register_spec_type(self)
end

module ActionController
  TestRoutes = ActionDispatch::Routing::RouteSet.new
  TestRoutes.draw do
    match ':controller(/:action)', via: [:all]
  end

  class Base
    include ActionController::Testing
    include TestRoutes.url_helpers
  end

  class ActionController::TestCase
    setup do
      @routes = TestRoutes
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sweet_notifications-0.1.0 test/test_helper.rb