Sha256: 1a56d5d65c3d788ecd57f5aa9e8437fcd428f4a2bdddab7debdfa032b28b9303

Contents?: true

Size: 311 Bytes

Versions: 25

Compression:

Stored size: 311 Bytes

Contents

require 'rails_helper'

describe LHS::Service do

  context 'model_name' do

    before(:each) do
      class LocalEntry < LHS::Service
        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

25 entries across 25 versions & 1 rubygems

Version Path
lhs-2.2.2 spec/service/model_name_spec.rb
lhs-1.6.1 spec/service/model_name_spec.rb
lhs-2.2.1 spec/service/model_name_spec.rb
lhs-2.2.0 spec/service/model_name_spec.rb
lhs-1.6.0 spec/service/model_name_spec.rb
lhs-2.1.1 spec/service/model_name_spec.rb
lhs-2.1.0 spec/service/model_name_spec.rb
lhs-2.0.5 spec/service/model_name_spec.rb
lhs-2.0.4 spec/service/model_name_spec.rb
lhs-2.0.3 spec/service/model_name_spec.rb
lhs-2.0.2 spec/service/model_name_spec.rb
lhs-2.0.1 spec/service/model_name_spec.rb
lhs-2.0.0 spec/service/model_name_spec.rb
lhs-1.5.0 spec/service/model_name_spec.rb
lhs-1.4.0 spec/service/model_name_spec.rb
lhs-1.3.1 spec/service/model_name_spec.rb
lhs-1.3.0 spec/service/model_name_spec.rb
lhs-1.2.3 spec/service/model_name_spec.rb
lhs-1.2.2 spec/service/model_name_spec.rb
lhs-1.2.1 spec/service/model_name_spec.rb