Sha256: c7df7cf0407fc558d6ea52e5a4c5f6aa32a02dc84383c4c7d78bb5ac66b3afd9

Contents?: true

Size: 643 Bytes

Versions: 6

Compression:

Stored size: 643 Bytes

Contents

require 'spec_helper'

describe Berkshelf::API::Config do
  describe "ClassMethods" do
    describe "::default_path" do
      it "returns a String" do
        expect(described_class.default_path).to be_a(String)
      end
    end
  end

  describe "default config" do
    subject { described_class.new }

    it "has a endpoint configured" do
      expect(subject.endpoints.size).to eq(1)
    end

    it "has the Supermarket community site as an endpoint" do
      expect(subject.endpoints.first.type).to eql("supermarket")
    end

    it "has the default build_interval" do
      expect(subject.build_interval).to eq(5.0)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
berkshelf-api-3.0.0 spec/unit/berkshelf/api/config_spec.rb
berkshelf-api-2.2.0 spec/unit/berkshelf/api/config_spec.rb
berkshelf-api-2.1.3 spec/unit/berkshelf/api/config_spec.rb
berkshelf-api-2.1.2 spec/unit/berkshelf/api/config_spec.rb
berkshelf-api-2.1.1 spec/unit/berkshelf/api/config_spec.rb
berkshelf-api-2.1.0 spec/unit/berkshelf/api/config_spec.rb