Sha256: 1004968364e465ec7d5fa061e5ca6db7253b94db0e3386233f7cc8a23ead7301
Contents?: true
Size: 699 Bytes
Versions: 11
Compression:
Stored size: 699 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", reset_before: false do all_endpoints = LHS::Record::Endpoints.all expect(all_endpoints['http://datastore/v2/users']).to be_present expect(all_endpoints['http://datastore/v2/users/{id}']).to be_present expect( User.endpoints.detect { |endpoint| endpoint.url == 'http://datastore/v2/users' } ).to be_present expect( User.endpoints.detect { |endpoint| endpoint.url == 'http://datastore/v2/users/{id}' } ).to be_present end end end
Version data entries
11 entries across 11 versions & 1 rubygems