Sha256: 5388e44e5d137b412308efb16143f92d3601a0c6f30ad6e0214135b85252976c

Contents?: true

Size: 478 Bytes

Versions: 4

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

4 entries across 4 versions & 1 rubygems

Version Path
berkshelf-5.5.0 spec/unit/berkshelf/errors_spec.rb
berkshelf-5.4.0 spec/unit/berkshelf/errors_spec.rb
berkshelf-5.3.0 spec/unit/berkshelf/errors_spec.rb
berkshelf-5.2.0 spec/unit/berkshelf/errors_spec.rb