Sha256: c9bbde664f95a4b6627c0b2249dc187bd04e52154d53ffc2f33abda9b6e6091c
Contents?: true
Size: 778 Bytes
Versions: 1
Compression:
Stored size: 778 Bytes
Contents
require 'helper' describe Toy do uses_constants('User', 'Game') describe ".key_factory" do it "should set the default key_factory" do key_factory = stub Toy.key_factory = key_factory Toy.key_factory.should == key_factory end it "should default to the UUIDKeyFactory" do Toy.key_factory = nil Toy.key_factory.should be_instance_of(Toy::Identity::UUIDKeyFactory) end end describe ".instrumenter" do it "defaults to noop" do described_class.instrumenter.should eq(Toy::Instrumenters::Noop) end end describe ".instrumenter=" do it "sets instrumenter" do instrumenter = double('Instrumenter') Toy.instrumenter = instrumenter Toy.instrumenter.should be(instrumenter) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
toystore-0.13.2 | spec/toy_spec.rb |