Sha256: 73d7890eb1f789496338e81127901b4c1a760b2b4ed48010f9c6d1dfca75bcac
Contents?: true
Size: 873 Bytes
Versions: 2
Compression:
Stored size: 873 Bytes
Contents
require "helper" describe Gasoline::Patchor do before do Gasoline::Patchor.any_instance.stubs(:save).returns(true) Gasoline::Patchor.any_instance.stubs(:bootstrap).returns(true) js = File.join(File.dirname(__FILE__), "patchor.js") Gasoline::Patchor.any_instance.stubs(:patchor_file).returns(js) end describe "loading patchor" do before do @patchor = Gasoline::Patchor.new end it "should load the js file into lines" do assert @patchor.lines.count > 1 end end describe "patching the patch" do before do @patchor = Gasoline::Patchor.new 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 end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gasoline-0.0.3 | test/patchor_test.rb |
gasoline-0.0.2 | test/patchor_test.rb |