Sha256: 342dba31d563c16f687db93f29e18b811e7182a4803a938a0085373414e2e85a
Contents?: true
Size: 345 Bytes
Versions: 2
Compression:
Stored size: 345 Bytes
Contents
require 'test_helper.rb' class ExplicitDecorateResponderTest < ActionController::TestCase tests ExplicitDecorateController def json JSON[@response.body] end def test_decoration ExplicitDecorateController.resource = User.new(name: 'John') get :index, format: :json assert_equal 'MyDecorator', json['class'] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
decorate-responder-2.1.0 | test/explicit_decorate_responder_test.rb |
decorate-responder-2.0.0 | test/explicit_decorate_responder_test.rb |