Sha256: 3c2a53ef6c07f67ca7e2f395d1a4c3e97173877a1c9844a8dae36f1848351774
Contents?: true
Size: 643 Bytes
Versions: 4
Compression:
Stored size: 643 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[':datastore/v2/users']).to be expect(all_endpoints[':datastore/v2/users/:id']).to be expect( User.endpoints.detect { |endpoint| endpoint.url == ':datastore/v2/users' } ).to be expect( User.endpoints.detect { |endpoint| endpoint.url == ':datastore/v2/users/:id' } ).to be end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
lhs-10.1.1 | spec/autoloading_spec.rb |
lhs-10.1.0 | spec/autoloading_spec.rb |
lhs-10.0.0 | spec/autoloading_spec.rb |
lhs-9.1.1 | spec/autoloading_spec.rb |