Sha256: 055d0d915128b31d91bea417b31ad17ab7750ea602b3313c6f9623fb2dd2a816

Contents?: true

Size: 1.01 KB

Versions: 1

Compression:

Stored size: 1.01 KB

Contents

require "ashikawa-core/exceptions/document_not_found"
require "ashikawa-core/exceptions/collection_not_found"
require "ashikawa-core/exceptions/index_not_found"
require "ashikawa-core/exceptions/no_collection_provided"
require "ashikawa-core/exceptions/unknown_path"

describe Ashikawa::Core::DocumentNotFoundException do
  it "should have a good explanation" do
    subject.to_s.should include "does not exist"
  end
end

describe Ashikawa::Core::CollectionNotFoundException do
  it "should have a good explanation" do
    subject.to_s.should include "does not exist"
  end
end

describe Ashikawa::Core::IndexNotFoundException do
  it "should have a good explanation" do
    subject.to_s.should include "does not exist"
  end
end

describe Ashikawa::Core::NoCollectionProvidedException do
  it "should have a good explanation" do
    subject.to_s.should include "without a collection"
  end
end

describe Ashikawa::Core::UnknownPath do
  it "should have a good explanation" do
    subject.to_s.should include "path is unknown"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ashikawa-core-0.6.0 spec/unit/exception_spec.rb