Sha256: d0db4c9941749d30d2accb13c2b7e510c5edf107f90615361284b151d9c1715a

Contents?: true

Size: 835 Bytes

Versions: 3

Compression:

Stored size: 835 Bytes

Contents

# frozen_string_literal: true

require_relative '../test_helper'

module Excon
  # ResourceObjectTest
  #
  # Validate the workings of `Excon::HyperResource::ResourceObject`.
  #
  class ResponseTest < HyperMediaTest
    def response
      bicycle
    end

    def test_response
      assert_equal Excon::Response, response.class
    end

    def test_links
      assert_equal response.resource._links, response.links
      assert_equal response.resource._links, response._links
    end

    def test_embedded
      assert_equal response.resource._embedded, response.embedded
      assert_equal response.resource._embedded, response._embedded
    end

    def test_properties
      assert_equal response.resource._properties, response.properties
      assert_equal response.resource._properties, response._properties
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
excon-hypermedia-0.7.0 test/excon/response_test.rb
excon-hypermedia-0.6.0 test/excon/response_test.rb
excon-hypermedia-0.5.3 test/excon/response_test.rb