Sha256: 2fca19004342ab6aae647ab57d21d27f49f58578d211d805a5b894423da8b5b9
Contents?: true
Size: 661 Bytes
Versions: 5
Compression:
Stored size: 661 Bytes
Contents
$LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'rubygems' require 'gemline' require 'bundler' Bundler.setup RSpec.configure do |c| # c.mock_with :rr end def stub_rubygems_json_output Dir.glob(File.join(File.dirname(__FILE__),'samples', '*.json')).each do |f| gem_name = $1 if f =~ /\/([\w\-]+).json$/ Gemline.stub!(:get_rubygem_json).with(gem_name).and_return(IO.read(f)) end end def grab_io @stdout = StringIO.new; $stdout = @stdout; @stderr = StringIO.new; $stderr = @stderr; yield @stdout.rewind; @stderr.rewind; $stdout = STDOUT $stderr = STDERR end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
gemline-0.3.2 | spec/spec_helper.rb |
gemline-0.3.1 | spec/spec_helper.rb |
gemline-0.3.0 | spec/spec_helper.rb |
gemline-0.2.0 | spec/spec_helper.rb |
gemline-0.1.4 | spec/spec_helper.rb |