spec/unit/berkshelf/api/config_spec.rb in berkshelf-api-1.4.0 vs spec/unit/berkshelf/api/config_spec.rb in berkshelf-api-2.0.0
- old
+ new
@@ -11,14 +11,13 @@
describe "default config" do
subject { described_class.new }
it "has a endpoint configured" do
- expect(subject.endpoints).to have(1).item
+ expect(subject.endpoints.size).to eq(1)
end
- it "has the Opscode community site as an endpoint" do
- expect(subject.endpoints.first.type).to eql("opscode")
- expect(subject.endpoints.first.options[:url]).to eql("http://cookbooks.opscode.com/api/v1")
+ it "has the Supermarket community site as an endpoint" do
+ expect(subject.endpoints.first.type).to eql("supermarket")
end
end
end