test it up
This commit is contained in:
parent
a998b2adf2
commit
487351c1b0
@ -1,3 +1,7 @@
|
||||
class ApplicationRecord < ActiveRecord::Base
|
||||
self.abstract_class = true
|
||||
|
||||
def to_i
|
||||
id
|
||||
end
|
||||
end
|
||||
|
@ -1,8 +1,15 @@
|
||||
ENV['RAILS_ENV'] ||= 'test'
|
||||
# require 'single_cov'
|
||||
# SingleCov.setup :minitest
|
||||
require File.expand_path('../../config/environment', __FILE__)
|
||||
require 'rails/test_help'
|
||||
require "minitest/autorun"
|
||||
require 'minitest/reporters'
|
||||
Minitest::Reporters.use! [Minitest::Reporters::DefaultReporter.new(color: true)]
|
||||
|
||||
class ActiveSupport::TestCase
|
||||
ActiveRecord::Migration.check_pending!
|
||||
|
||||
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
|
||||
fixtures :all
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user