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-8.0.15 spec/unit/berkshelf/errors_spec.rb
berkshelf-8.0.13 spec/unit/berkshelf/errors_spec.rb
berkshelf-8.0.12 spec/unit/berkshelf/errors_spec.rb
berkshelf-8.0.9 spec/unit/berkshelf/errors_spec.rb
berkshelf-8.0.7 spec/unit/berkshelf/errors_spec.rb
berkshelf-8.0.5 spec/unit/berkshelf/errors_spec.rb
berkshelf-8.0.2 spec/unit/berkshelf/errors_spec.rb
berkshelf-8.0.1 spec/unit/berkshelf/errors_spec.rb
berkshelf-8.0.0 spec/unit/berkshelf/errors_spec.rb
berkshelf-7.2.2 spec/unit/berkshelf/errors_spec.rb
berkshelf-7.2.1 spec/unit/berkshelf/errors_spec.rb
berkshelf-7.2.0 spec/unit/berkshelf/errors_spec.rb
berkshelf-7.1.0 spec/unit/berkshelf/errors_spec.rb
berkshelf-7.0.10 spec/unit/berkshelf/errors_spec.rb
berkshelf-7.0.9 spec/unit/berkshelf/errors_spec.rb
berkshelf-7.0.8 spec/unit/berkshelf/errors_spec.rb
berkshelf-7.0.7 spec/unit/berkshelf/errors_spec.rb
berkshelf-6.3.4 spec/unit/berkshelf/errors_spec.rb
berkshelf-7.0.6 spec/unit/berkshelf/errors_spec.rb
berkshelf-7.0.5 spec/unit/berkshelf/errors_spec.rb