Sha256: 2e661f7d9c0cb486d6565c03cf8eeee76ca89e67da6d17177de4d9d1c53c0418
Contents?: true
Size: 449 Bytes
Versions: 1
Compression:
Stored size: 449 Bytes
Contents
require "spec_helper" describe Spank::IOC do context "when bound to a container" do let(:container) { double } let(:component) { double } before :each do container.stub(:resolve).with(:idbconnection).and_return(component) Spank::IOC.bind_to(container) end let(:result) { Spank::IOC.resolve(:idbconnection) } it "should resove items from that container" do result.should == component end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spank-0.0.1385937112 | spec/unit/ioc_spec.rb |