Sha256: ef7d88b79455f27403fe5ae145eb30696608b5faec38fdf36cf9525b02ca8c21
Contents?: true
Size: 571 Bytes
Versions: 1
Compression:
Stored size: 571 Bytes
Contents
ActionController::TestCase.class_eval do def setup @routes = TestHelper::Routes end # For Rails5 # https://github.com/rails/rails/commit/ca83436d1b3b6cedd1eca2259f65661e69b01909#diff-b9bbf56e85d3fe1999f16317f2751e76L17 def assigns(key = nil) assigns = {}.with_indifferent_access @controller.view_assigns.each { |k, v| assigns.regular_writer(k, v) } key.nil? ? assigns : assigns[key] end # Rails5: Uncomment for debugging where the warnings come from # def non_kwarg_request_warning # super # STDOUT.puts caller[2..3] # end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_model_serializers-0.10.0.rc4 | test/support/test_case.rb |