Sha256: 14d45d577e6e013aa5b92230ccd1afdd4a4c8bc5d874cee41270224cf666e7f3
Contents?: true
Size: 825 Bytes
Versions: 2
Compression:
Stored size: 825 Bytes
Contents
module CDQ describe "CDQ Store Manager" do before do CDQ.cdq.setup @sm = CDQStoreManager.new(model_manager: CDQ.cdq.models) end after do CDQ.cdq.reset! end it "can set up a store coordinator with default name" do @sm.current.should != nil @sm.current.class.should == NSPersistentStoreCoordinator end it "rejects attempt to create without a valid model" do c = CDQConfig.new(name: "foo") mm = CDQModelManager.new(config: c) sm = CDQStoreManager.new(config: c, model_manager: mm) should.raise do sm.current end end it "permits setting custom store manager" do nsm = CDQStoreManager.new(model: nil) should.not.raise do nsm.current = @sm.current nsm.current end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cdq-0.1.2 | spec/cdq/store_spec.rb |
cdq-0.1.1 | spec/cdq/store_spec.rb |