Sha256: 315d6e43c03fff090f84249a5720a8e4b747cb7c1264013316045bdeb635d0db

Contents?: true

Size: 397 Bytes

Versions: 5

Compression:

Stored size: 397 Bytes

Contents

require_relative "../spec_helper"

describe "ApiPath" do

    include TestingModels

    around do |example|
        with_testing_models do
            example.run
        end
    end

    it "generates path" do
        expect('test-model').to eq(TestModel.api_path)
    end

    it "converts path to model" do
        expect(TestModel).to eq(Hippo::Model.from_api_path('test-model'))
    end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hippo-fw-0.9.9 spec/server/concerns/api_path_spec.rb
hippo-fw-0.9.8 spec/server/concerns/api_path_spec.rb
hippo-fw-0.9.7 spec/server/concerns/api_path_spec.rb
hippo-fw-0.9.6 spec/server/concerns/api_path_spec.rb
hippo-fw-0.9.5 spec/server/concerns/api_path_spec.rb