File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323ENV [ 'DATABASE_URL' ] ||= "sqlite3:test_db"
2424
2525require 'active_record/railtie'
26- require 'rails/test_help'
2726require 'minitest/mock'
2827require 'jsonapi-resources'
2928require 'pry'
4241 config . json_key_format = :camelized_key
4342end
4443
45- ActiveSupport ::Deprecation . silenced = true
44+ if ActiveSupport ::Deprecation . respond_to? ( :behavior= )
45+ ActiveSupport ::Deprecation . behavior = :silence
46+ elsif ActiveSupport ::Deprecation . respond_to? ( :silenced= )
47+ ActiveSupport ::Deprecation . silenced = true
48+ end
4649
4750puts "Testing With RAILS VERSION #{ Rails . version } "
4851
@@ -457,20 +460,20 @@ def run_in_transaction?
457460 true
458461 end
459462
460- self . fixture_path = "#{ Rails . root } /fixtures"
463+ self . fixture_paths = [ "#{ Rails . root } /fixtures" ]
461464 fixtures :all
462465end
463466
464467class ActiveSupport ::TestCase
465- self . fixture_path = "#{ Rails . root } /fixtures"
468+ self . fixture_paths = [ "#{ Rails . root } /fixtures" ]
466469 fixtures :all
467470 setup do
468471 @routes = TestApp . routes
469472 end
470473end
471474
472475class ActionDispatch ::IntegrationTest
473- self . fixture_path = "#{ Rails . root } /fixtures"
476+ self . fixture_paths = [ "#{ Rails . root } /fixtures" ]
474477 fixtures :all
475478
476479 def assert_jsonapi_response ( expected_status , msg = nil )
You can’t perform that action at this time.
0 commit comments