Sha256: 645580d85792055055dbf4f415829dbd1f0984c4253ba300878ac73c98f202f2
Contents?: true
Size: 730 Bytes
Versions: 47
Compression:
Stored size: 730 Bytes
Contents
# frozen_string_literal: true 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
47 entries across 47 versions & 1 rubygems