Sha256: e3d2fa9c0457f973fcb476640e4328cb676b2a50de92b66bd50f4ceca44a7093
Contents?: true
Size: 555 Bytes
Versions: 1
Compression:
Stored size: 555 Bytes
Contents
require 'test_helper' class ActiveModelSerializers::SerializationContextTest < ActiveSupport::TestCase def create_context request = Minitest::Mock.new request.expect(:original_url, 'original_url') request.expect(:query_parameters, 'query_parameters') ActiveModelSerializers::SerializationContext.new(request) end def test_create_context_with_request_url_and_query_parameters context = create_context assert_equal context.request_url, 'original_url' assert_equal context.query_parameters, 'query_parameters' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_model_serializers-0.10.0.rc4 | test/active_model_serializers/serialization_context_test.rb |