Sha256: b35b0e18b330be980ab2308c13fe163a8abb4f5980aeb154c5d6b8458eb12044
Contents?: true
Size: 515 Bytes
Versions: 1
Compression:
Stored size: 515 Bytes
Contents
require 'spec_helper' describe Dependor::Isolate do class ExampleSubject takes :foo, :bar end class ExampleContext include Dependor::Isolate def subject isolate(ExampleSubject) end def foo "the foo stub" end def bar "the bar stub" end end it "injects the subject's dependencies using methods on context" do context = ExampleContext.new context.subject.foo.should == "the foo stub" context.subject.bar.should == "the bar stub" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dependor-0.0.4 | spec/dependor/isolate_spec.rb |