Sha256: 4ea30fa877177676e31cdd459ad788911e6a3a7471f0ecdc1732eda50f566f3a

Contents?: true

Size: 309 Bytes

Versions: 16

Compression:

Stored size: 309 Bytes

Contents

require 'rails_helper'

describe LHS::Record do
  context 'model_name' do
    before(:each) 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

16 entries across 16 versions & 1 rubygems

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