Sha256: 40b3c5acee1995359f6a592675a5c3518a2c092ea032b8c0925d90b4135dc521

Contents?: true

Size: 450 Bytes

Versions: 17

Compression:

Stored size: 450 Bytes

Contents

require 'spec_helper'

describe ::Trax::Model::Registry do
  subject{ described_class }

  its(:models) { should be_instance_of(::Hashie::Mash) }
  its(:uuid_map) { should have_key("1a") }
  its(:uuid_map) { should be_instance_of(::Hashie::Mash) }

  it "should have registered product model" do
    subject.key?(:product).should be true
  end

  it "model_type_for_uuid" do
    subject.model_type_for_uuid("1absdasdasd").should eq Product
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
trax_model-0.1.0 spec/trax/model/registry_spec.rb
trax_model-0.0.99 spec/trax/model/registry_spec.rb
trax_model-0.0.98 spec/trax/model/registry_spec.rb
trax_model-0.0.97 spec/trax/model/registry_spec.rb
trax_model-0.0.96 spec/trax/model/registry_spec.rb
trax_model-0.0.95 spec/trax/model/registry_spec.rb
trax_model-0.0.93 spec/trax/model/registry_spec.rb
trax_model-0.0.92 spec/trax/model/registry_spec.rb
trax_model-0.0.91 spec/trax/model/registry_spec.rb
trax_model-0.0.9 spec/trax/model/registry_spec.rb
trax_model-0.0.8 spec/trax/model/registry_spec.rb
trax_model-0.0.7 spec/trax/model/registry_spec.rb
trax_model-0.0.6 spec/trax/model/registry_spec.rb
trax_model-0.0.5 spec/trax/model/registry_spec.rb
trax_model-0.0.4 spec/trax/model/registry_spec.rb
trax_model-0.0.3 spec/trax/model/registry_spec.rb
trax_model-0.0.2 spec/trax/model/registry_spec.rb