Sha256: 36b7f24a65031f244a8b07604e28de791ea7cbbd2d9d515659760778eeb41879
Contents?: true
Size: 641 Bytes
Versions: 2
Compression:
Stored size: 641 Bytes
Contents
require "simplecov" SimpleCov.start $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__) require "simplecov" SimpleCov.start do add_filter "/spec" end require "npm2gem" base_directory = Dir.pwd dummy_directory = File.join(base_directory, "spec", "dummy") RSpec.configure do |config| config.before(:all) do Dir.chdir(dummy_directory) end config.after(:all) do # We clean up in the codebase, but if there's errors it doesn't get that far # FileUtils.rm_rf(File.join(dummy_directory, "node_modules")) # Restore the dummy app, since we change the files in it `git checkout -- #{dummy_directory}` end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
npm2gem-0.1.1 | spec/spec_helper.rb |
npm2gem-0.1.0 | spec/spec_helper.rb |