Sha256: 9f57b20ec3e298ecb13e3e59c3fba2a1a534b0060d13ba1a031ac73c3fc88a9d
Contents?: true
Size: 519 Bytes
Versions: 4
Compression:
Stored size: 519 Bytes
Contents
require 'spec_helper' describe Casino::Lobby do let(:collection) { Collection } let(:object_class) { Model } let(:object_instance) { object_class.new } let(:object_key) { object_class.name.downcase.split("::").last.to_sym } let(:lobby) { Casino::Lobby.new(collection) } subject { lobby } it { subject.collection.must_equal collection } it "stores objects instances in a registry" do subject.add_registry(object_instance) subject.registry[object_key].must_include object_instance end end
Version data entries
4 entries across 4 versions & 1 rubygems