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")
      expect(subject.endpoints.first.options[:url]).to eql("https://supermarket.getchef.com/api/v1")
    end
  end
end

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
  end
end

Remove unneeded test for the Supermarket URL
Remove unneeded test for the Supermarket URL
