test/test_helper.rb in superstore-2.5.0 vs test/test_helper.rb in superstore-3.0.0

- old
+ new

@@ -1,24 +1,23 @@ +ENV['RAILS_ENV'] = 'test' +require 'simplecov' + require 'rails' I18n.config.enforce_available_locales = false ActiveSupport::TestCase.test_order = :random require 'active_record' require 'rails/test_help' -require 'mocha/setup' +require 'mocha/api' require 'superstore' require 'support/pg' require 'support/jsonb' require 'support/models' -def MiniTest.filter_backtrace(bt) - bt -end - module Superstore class TestCase < ActiveSupport::TestCase def temp_object(&block) Class.new(Superstore::Base) do self.table_name = 'issues' @@ -35,9 +34,10 @@ end module Types class TestCase < Superstore::TestCase attr_accessor :type + setup do @type = self.class.name.sub(/Test$/, '').constantize.new end end end