Sha256: ddd353e9e97007adfd15ab80cfada1ddce36e9ad87114cf2a4b20b4569fffa25
Contents?: true
Size: 959 Bytes
Versions: 2
Compression:
Stored size: 959 Bytes
Contents
module CDQ describe "CDQ Object" do before do class << self include CDQ end cdq.setup end after do cdq.reset! end it "has a contexts method" do cdq.contexts.class.should == CDQContextManager end it "has a stores method" do cdq.stores.class.should == CDQStoreManager end it "has a models method" do cdq.models.class.should == CDQModelManager end it "can override model" do model = cdq.models.current cdq.reset! cdq.setup(model: model) cdq.models.current.should == model end it "can override store" do store = cdq.stores.current cdq.reset! cdq.setup(store: store) cdq.stores.current.should == store end it "can override context" do context = cdq.contexts.current cdq.reset! cdq.setup(context: context) cdq.contexts.current.should == context end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cdq-0.1.2 | spec/cdq/object_spec.rb |
cdq-0.1.1 | spec/cdq/object_spec.rb |