Sha256: 815d16c7f9a44120bd629a0e94159dc328d1be71fb09020298ea1d2cd5651070

Contents?: true

Size: 308 Bytes

Versions: 4

Compression:

Stored size: 308 Bytes

Contents

require_relative '../spec_helper'

class ApiPathTest < Lanes::TestCase

    include TestingModels

    def test_path_generation
        assert_equal 'test-models', TestModel.api_path
    end

    def testing_path_to_model
        assert_equal TestModel, Lanes::Model.from_api_path('test-models')
    end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lanes-0.0.5 spec/concerns/api_path_spec.rb
lanes-0.0.3 spec/concerns/api_path_spec.rb
lanes-0.0.2 spec/concerns/api_path_spec.rb
lanes-0.0.1 spec/concerns/api_path_spec.rb