Sha256: cd653d0025a5c02c112f8d62d7b8563623aca052f2071298950756f9827f020b
Contents?: true
Size: 669 Bytes
Versions: 16
Compression:
Stored size: 669 Bytes
Contents
require "rails_helper" describe LHS, type: :request do context 'autoloading' do it "pre/re-loads all LHS classes initialy,| because it's necessary for endpoint-to-record-class-discovery", cleanup_before: false do all_endpoints = LHS::Record::Endpoints.all expect(all_endpoints['http://datastore/v2/users']).to be expect(all_endpoints['http://datastore/v2/users/{id}']).to be expect( User.endpoints.detect { |endpoint| endpoint.url == 'http://datastore/v2/users' } ).to be expect( User.endpoints.detect { |endpoint| endpoint.url == 'http://datastore/v2/users/{id}' } ).to be end end end
Version data entries
16 entries across 16 versions & 1 rubygems