Sha256: 5dec943473858aba710da2bcf528967594e695aed6ddb48001d3f34dd502ac6b

Contents?: true

Size: 261 Bytes

Versions: 15

Compression:

Stored size: 261 Bytes

Contents

shared_examples_for "a human-readable string" do
  it "does not start with Ruby object notation" do
    expect(subject.to_s).to_not start_with("#<")
  end

  it "does not contain a hex prefix" do
    expect(subject.to_s).to_not match(%r{0x[0-9a-f]+})
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
berkshelf-api-3.0.0 spec/support/human_reaable.rb
berkshelf-api-2.2.0 spec/support/human_reaable.rb
berkshelf-api-2.1.3 spec/support/human_reaable.rb
berkshelf-api-2.1.2 spec/support/human_reaable.rb
berkshelf-api-2.1.1 spec/support/human_reaable.rb
berkshelf-api-2.1.0 spec/support/human_reaable.rb
berkshelf-api-2.0.0 spec/support/human_reaable.rb
berkshelf-api-1.4.0 spec/support/human_reaable.rb
berkshelf-api-1.3.1 spec/support/human_reaable.rb
berkshelf-api-1.3.0 spec/support/human_reaable.rb
berkshelf-api-1.2.2 spec/support/human_reaable.rb
berkshelf-api-1.2.1 spec/support/human_reaable.rb
berkshelf-api-1.2.0 spec/support/human_reaable.rb
berkshelf-api-1.2.0.rc2 spec/support/human_reaable.rb
berkshelf-api-1.2.0.rc1 spec/support/human_reaable.rb