test/patchor_test.rb in gasoline-0.0.1 vs test/patchor_test.rb in gasoline-0.0.2
- old
+ new
@@ -22,15 +22,14 @@
end
describe "patching the patch" do
before do
@patchor = Gasoline::Patchor.new
- drop = mock()
- drop.expects(:patch).returns("ZE PATCH")
- @patchor.expects(:drops).returns([drop])
end
it "should download the patches and add them to lines" do
+ drop = OpenStruct.new(:patch => "ZE PATCH")
+ @patchor.expects(:drops).returns([drop])
@patchor.patch_it_chewie
assert @patchor.lines.include?("ZE PATCH")
end
end