Sha256: 425000c0295fffb83fdda03afb9d636a0f13193e4d6e2825f2abd1d9181d58f1

Contents?: true

Size: 573 Bytes

Versions: 7

Compression:

Stored size: 573 Bytes

Contents

require 'spec_helper'

describe Berkshelf::Source do
  describe "#universe"
  describe "#cookbook"
  describe "#versions"

  describe "#==" do
    it "is the same if the uri matches" do
      first = described_class.new("http://localhost:8080")
      other = described_class.new("http://localhost:8080")

      expect(first).to eq(other)
    end

    it "is not the same if the uri is different" do
      first = described_class.new("http://localhost:8089")
      other = described_class.new("http://localhost:8080")

      expect(first).to_not eq(other)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
berkshelf-3.0.0.beta7 spec/unit/berkshelf/source_spec.rb
berkshelf-3.0.0.beta6 spec/unit/berkshelf/source_spec.rb
berkshelf-3.0.0.beta5 spec/unit/berkshelf/source_spec.rb
berkshelf-3.0.0.beta4 spec/unit/berkshelf/source_spec.rb
berkshelf-3.0.0.beta3 spec/unit/berkshelf/source_spec.rb
berkshelf-3.0.0.beta2 spec/unit/berkshelf/source_spec.rb
berkshelf-3.0.0.beta1 spec/unit/berkshelf/source_spec.rb