Sha256: 8dfa1150535690e89b43d3f909e61fd63aba2689e56e24e8c7072c80dbc9a13c
Contents?: true
Size: 917 Bytes
Versions: 4
Compression:
Stored size: 917 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 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
4 entries across 4 versions & 1 rubygems