test it up

This commit is contained in:
Mark Moser 2016-07-26 18:43:27 -05:00
parent a998b2adf2
commit 487351c1b0
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,7 @@
class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
def to_i
id
end
end

View File

@ -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