Sha256: f831ec322aceef6c37d90ae85da74bf01f8b96a0e76563125d6f1ab5250dfabf
Contents?: true
Size: 511 Bytes
Versions: 2
Compression:
Stored size: 511 Bytes
Contents
require 'sane' require_rel '../lib/faster_gem_scripts' require 'spec/autorun' describe "rewriter" do def setup File.delete 'abc' if File.exist?('abc') FasterGemScripts.overwrite 'abc' end it "should overwrite a file" do setup new_contents = File.read('abc') assert new_contents.contain?("faster_rubygems") end it "should nuke the cache on write" do require 'fileutils' FileUtils.touch 'abc_bin_location' setup assert !File.exist?('abc_bin_location') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
faster_gem_script-0.1.2 | spec/spec.rb |
faster_gem_script-0.1.1 | spec/spec.rb |