Sha256: 849020ddcd52dc89cb335be53d04bc32b2f30dbdc722f185a09a10050a1211af

Contents?: true

Size: 405 Bytes

Versions: 1

Compression:

Stored size: 405 Bytes

Contents

require 'rspec'
require File.dirname(__FILE__) + '/../lib/soloist'

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
soloist-0.9.7 spec/spec_helper.rb