Sha256: 10ae8c4a53ae9b817225f70519013a88bbfd081004fc66104132d82799eb3e58

Contents?: true

Size: 940 Bytes

Versions: 3

Compression:

Stored size: 940 Bytes

Contents

require 'simplecov'
SimpleCov.start 'rails'

ENV["RAILS_ENV"] = "test"
require File.expand_path('../dummy/config/environment', __FILE__)
require "rails/test_help"

require 'faker'
require 'database_cleaner'
require "minitest/autorun"
require "minitest/rails"
require "minitest/rails/capybara"
require 'minitest/unit'
require 'minitest/mock'
require Cardboard::Engine.root.join('lib/cardboard/helpers/seed.rb')

require File.expand_path('../factories.rb', __FILE__)

begin; require 'turn/autorun'; rescue LoadError; end

DatabaseCleaner.strategy = :truncation

# Uncomment if you want awesome colorful output
# require "minitest/pride"

class ActiveSupport::TestCase
  include FactoryGirl::Syntax::Methods
end

class ActionDispatch::IntegrationTest
  include Rails.application.routes.url_helpers
  include Capybara::DSL

  include Warden::Test::Helpers
  Warden.test_mode!

  def cardboard
    Cardboard::Engine.routes.url_helpers
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cardboard_cms-0.1.8 test/test_helper.rb
cardboard_cms-0.1.6 test/test_helper.rb
cardboard_cms-0.1.4 test/test_helper.rb