Sha256: 4ca8609471544c154896efbe75b097a43835edf9bf2d4c210a143db27952b67a

Contents?: true

Size: 450 Bytes

Versions: 1

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("a1") }
  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("a1asdasdasd").should eq Product
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
trax_model-0.0.1 spec/trax/model/registry_spec.rb