Sha256: adf93b420327c042f230f01192925e4aa770b98656bbb2117f39c1ec6322a092
Contents?: true
Size: 955 Bytes
Versions: 13
Compression:
Stored size: 955 Bytes
Contents
require 'spec_helper' require 'r10k/module_repository/forge' describe R10K::ModuleRepository::Forge do it "uses the official forge by default" do forge = described_class.new expect(forge.forge).to eq 'forge.puppetlabs.com' end it "can use a private forge" do forge = described_class.new('forge.example.local') expect(forge.forge).to eq 'forge.example.local' end describe "and the expected version is :latest", :vcr => true, :unless => (RUBY_VERSION == '1.8.7') do subject(:forge) { described_class.new } before do forge.conn.builder.insert_before(Faraday::Adapter::NetHttp, VCR::Middleware::Faraday) end it "can fetch all versions of a given module" do expect(forge.versions('adrien/boolean')).to eq ["0.9.0-rc1", "0.9.0", "1.0.0", "1.0.1"] end it "can fetch the latest version of a given module" do expect(forge.latest_version('adrien/boolean')).to eq "1.0.1" end end end
Version data entries
13 entries across 13 versions & 1 rubygems