test/test_helper.rb in superstore-1.2.0 vs test/test_helper.rb in superstore-2.0.0

- old
+ new

@@ -1,18 +1,19 @@ require 'bundler/setup' Bundler.require(:default, :test) I18n.config.enforce_available_locales = false +require 'active_record' require 'rails/test_help' require 'mocha/setup' +ActiveSupport::TestCase.test_order = :random + require 'support/pg' - require 'support/hstore' -# require 'support/cassandra' -require 'support/issue' -require 'support/user' +require 'support/jsonb' +require 'support/models' def MiniTest.filter_backtrace(bt) bt end @@ -33,12 +34,12 @@ end end module Types class TestCase < Superstore::TestCase - attr_accessor :coder + attr_accessor :type setup do - @coder = self.class.name.sub(/Test$/, '').constantize.new + @type = self.class.name.sub(/Test$/, '').constantize.new(Issue) end end end end