Sha256: ac4420aec079e3dcb9c864b064d3288698d0b8364524242570712b49700f71a1
Contents?: true
Size: 709 Bytes
Versions: 8
Compression:
Stored size: 709 Bytes
Contents
# -*- coding: utf-8 -*- require 'spec_helper' require 'gemirro/versions_fetcher' # VersionsFetcher tests module Gemirro describe 'VersionsFetcher' do before(:each) do @source = Source.new('RubyGems', 'https://rubygems.org') @fetcher = VersionsFetcher.new(@source) end it 'should be initialized' do expect(@fetcher.source).to be(@source) end it 'should fetch versions' do Gemirro.configuration.logger.should_receive(:info) .once.with("Updating #{@source.name} (#{@source.host})") @source.should_receive(:fetch_versions).once.and_return([]) VersionsFile.should_receive(:load).with([]) expect(@fetcher.fetch).to be_nil end end end
Version data entries
8 entries across 8 versions & 1 rubygems