Sha256: 9eb3f127f2350e7004936106aadc029b19ef9f771cb7de670cf92e441e8df91a

Contents?: true

Size: 425 Bytes

Versions: 5

Compression:

Stored size: 425 Bytes

Contents

RSpec.describe Loaf::Crumb do
  it "fails when name is nil" do
    expect {
      Loaf::Crumb.new(nil, 'path')
    }.to raise_error(ArgumentError,
                     /breadcrumb first argument, `name`, cannot be nil/)
  end

  it "fails when url is nil" do
    expect {
      Loaf::Crumb.new('name', nil)
    }.to raise_error(ArgumentError,
                    /breadcrumb second argument, `url`, cannot be nil/)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
loaf-0.8.1 spec/unit/crumb_spec.rb
loaf-0.8.0 spec/unit/crumb_spec.rb
loaf-0.7.0 spec/unit/crumb_spec.rb
loaf-0.6.2 spec/unit/crumb_spec.rb
loaf-0.6.1 spec/unit/crumb_spec.rb