Sha256: 52a8017907257e3682bfa553cf8ac2bd0d72ba4ef63c39e71bf8ce8082cb8c2d

Contents?: true

Size: 480 Bytes

Versions: 4

Compression:

Stored size: 480 Bytes

Contents

require 'warp/dir'
require 'spec_helper'

RSpec.describe Warp::Dir::Errors do
  include_context :fake_serializer
  include_context :initialized_store

  it 'should properly throw point already exists error' do
    expect(store.class).to eql(Warp::Dir::Store)
    expect(point.class).to eql(Warp::Dir::Point)

    store.add(point: point.dup)
    point.full_path = '~/booomania'
    expect { store.add(point: point) }.to raise_error(Warp::Dir::Errors::PointAlreadyExists)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
warp-dir-1.1.3 spec/warp/dir/errors_spec.rb
warp-dir-1.1.2 spec/warp/dir/errors_spec.rb
warp-dir-1.1.1 spec/warp/dir/errors_spec.rb
warp-dir-1.1.0 spec/warp/dir/errors_spec.rb