Sha256: 0b154851347c2418e6c0c7a6da02ab76a3d65e465e9729613834fcf09cc83e8d

Contents?: true

Size: 478 Bytes

Versions: 42

Compression:

Stored size: 478 Bytes

Contents

require "spec_helper"

describe Berkshelf::BerkshelfError do
  skip
end

describe Berkshelf::CommunitySiteError do
  let(:api_uri) { "https://infra.as.code" }
  let(:message) { "Cookbook name" }

  subject { described_class.new(api_uri, message) }

  it "includes the supplied uri in the error message" do
    expect(subject.message).to include api_uri
  end

  it "includes the supplied message in the error message" do
    expect(subject.message).to include message
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
berkshelf-6.3.3 spec/unit/berkshelf/errors_spec.rb
berkshelf-7.0.4 spec/unit/berkshelf/errors_spec.rb
berkshelf-7.0.3 spec/unit/berkshelf/errors_spec.rb
berkshelf-7.0.2 spec/unit/berkshelf/errors_spec.rb
berkshelf-7.0.1 spec/unit/berkshelf/errors_spec.rb
berkshelf-7.0.0 spec/unit/berkshelf/errors_spec.rb
berkshelf-6.3.2 spec/unit/berkshelf/errors_spec.rb
berkshelf-6.3.1 spec/unit/berkshelf/errors_spec.rb
berkshelf-6.3.0 spec/unit/berkshelf/errors_spec.rb
berkshelf-6.2.2 spec/unit/berkshelf/errors_spec.rb
berkshelf-6.2.1 spec/unit/berkshelf/errors_spec.rb
berkshelf-6.2.0 spec/unit/berkshelf/errors_spec.rb
berkshelf-6.1.1 spec/unit/berkshelf/errors_spec.rb
berkshelf-6.1.0 spec/unit/berkshelf/errors_spec.rb
berkshelf-6.0.1 spec/unit/berkshelf/errors_spec.rb
berkshelf-6.0.0 spec/unit/berkshelf/errors_spec.rb
berkshelf-5.6.5 spec/unit/berkshelf/errors_spec.rb
berkshelf-5.6.4 spec/unit/berkshelf/errors_spec.rb
berkshelf-5.6.3 spec/unit/berkshelf/errors_spec.rb
berkshelf-5.6.2 spec/unit/berkshelf/errors_spec.rb