Sha256: 048c793621eafcc1653f0e6d9a8deba86e89a85688b999d731fd2272fa14efd4

Contents?: true

Size: 302 Bytes

Versions: 19

Compression:

Stored size: 302 Bytes

Contents

require 'rails_helper'

describe LHS::Record do
  context 'model_name' do
    before do
      class LocalEntry < LHS::Record
        endpoint '{+datastore}/local-entries'
      end
    end

    it 'provides a model name' do
      expect(LocalEntry.model_name.name).to eq 'LocalEntry'
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
lhs-16.1.5 spec/record/model_name_spec.rb
lhs-16.1.4 spec/record/model_name_spec.rb
lhs-16.1.3 spec/record/model_name_spec.rb
lhs-16.1.2 spec/record/model_name_spec.rb
lhs-16.1.1 spec/record/model_name_spec.rb
lhs-16.1.0 spec/record/model_name_spec.rb
lhs-16.0.1 spec/record/model_name_spec.rb
lhs-16.0.0 spec/record/model_name_spec.rb
lhs-15.7.0 spec/record/model_name_spec.rb
lhs-15.6.1 spec/record/model_name_spec.rb
lhs-15.6.0 spec/record/model_name_spec.rb
lhs-15.5.1 spec/record/model_name_spec.rb
lhs-15.5.0 spec/record/model_name_spec.rb
lhs-15.4.1 spec/record/model_name_spec.rb
lhs-15.4.0 spec/record/model_name_spec.rb
lhs-15.4.0.pre.hasone.1 spec/record/model_name_spec.rb
lhs-15.3.3 spec/record/model_name_spec.rb
lhs-15.3.3.pre.fixoptions.1 spec/record/model_name_spec.rb
lhs-15.3.2 spec/record/model_name_spec.rb