Sha256: c8466dcd774cd1e46d1a673048e8ead1c4c68e3116344f29d029c717e7fc549f
Contents?: true
Size: 674 Bytes
Versions: 5
Compression:
Stored size: 674 Bytes
Contents
require 'faster_rubygems' if RUBY_VERSION < '1.9' require 'sane' require_relative '../lib/faster_gem_scripts' require 'spec/autorun' require 'fileutils' describe "faster rubygems" do def setup File.delete 'abc' if File.exist?('abc') FileUtils.touch '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 old cache on re-write" do require 'fileutils' FileUtils.touch 'abc_bin_location' setup assert !File.exist?('abc_bin_location') end it "should overwrite on gem install" end
Version data entries
5 entries across 5 versions & 1 rubygems