spec/spec_helper.rb in soloist-0.9.7 vs spec/spec_helper.rb in soloist-1.0.0.pre

- old
+ new

@@ -1,9 +1,6 @@ -require 'rspec' -require File.dirname(__FILE__) + '/../lib/soloist' +$: << File.expand_path("../../lib", __FILE__) -def mock_gem(name, dependencies=[]) - mock_dependencies = dependencies.map { |depenency| mock(:name => depenency) } - mock_gemspec = mock("#{name} gemspec", :dependencies => mock_dependencies) - Gem::Specification.stub(:find_by_name).with(name).and_return(mock_gemspec) - Gem.stub(:searcher).and_return(mock({:find => mock_gemspec})) -end \ No newline at end of file +require "soloist" +require "tempfile" +require "json" +require "tmpdir"