Sha256: 48fcb5ba660af80e03b068bd38c9e009b432db8f238b87c5e4d884adfbef28d1
Contents?: true
Size: 589 Bytes
Versions: 2
Compression:
Stored size: 589 Bytes
Contents
require File.expand_path( File.join(File.dirname(__FILE__), %w[.. .. lib germinate])) module Germinate describe Insertion, "given a library and a selector" do before :each do @hunk = stub("Hunk").as_null_object @library = stub("Library", :[] => @hunk) @selector = stub("Selector") @it = Germinate::Insertion.new(@selector, @library, {}) end it "should use the library to resolve itself" do @library.should_receive(:[]). with(@selector, anything, anything).and_return(@hunk) @it.resolve.should == @hunk end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
devver-germinate-1.2.0 | spec/germinate/insertion_spec.rb |
germinate-1.2.0 | spec/germinate/insertion_spec.rb |