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

- old
+ new

@@ -11,16 +11,20 @@ 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' - string :force_save + attribute :force_save, type: :string before_save { self.force_save = 'junk' } def self.name 'Issue' end @@ -32,10 +36,10 @@ module Types class TestCase < Superstore::TestCase attr_accessor :type setup do - @type = self.class.name.sub(/Test$/, '').constantize.new(Issue) + @type = self.class.name.sub(/Test$/, '').constantize.new end end end end