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

Version Path
lhs-15.3.1 spec/autoloading_spec.rb
lhs-15.3.1.pre.fixlhc.1 spec/autoloading_spec.rb
lhs-15.3.0 spec/autoloading_spec.rb
lhs-15.2.5 spec/autoloading_spec.rb
lhs-15.2.4 spec/autoloading_spec.rb
lhs-15.2.3 spec/autoloading_spec.rb
lhs-15.2.3.pre.favorites.1 spec/autoloading_spec.rb
lhs-15.2.2.pre.favorites.1 spec/autoloading_spec.rb
lhs-15.2.2 spec/autoloading_spec.rb
lhs-15.2.1 spec/autoloading_spec.rb
lhs-15.2.0 spec/autoloading_spec.rb
lhs-15.1.1 spec/autoloading_spec.rb
lhs-15.1.0 spec/autoloading_spec.rb
lhs-15.0.2 spec/autoloading_spec.rb
lhs-15.0.1 spec/autoloading_spec.rb
lhs-15.0.0 spec/autoloading_spec.rb