Sha256: 6d2a23488a1164b487777358cce8e93386ee9b3dabdac93b5f5865ab36ec9efd

Contents?: true

Size: 407 Bytes

Versions: 1

Compression:

Stored size: 407 Bytes

Contents

require 'spec_helper'

describe 'PGit::Error::User' do
  it 'should save the error' do
    message = "You did something dumb..."
    user_error = PGit::Error::User.new(message)

    expect(user_error.message).to eq message
  end

  it 'should be a PGit::Error' do
    message = "You did something dumb..."
    ancestors = PGit::Error::User.ancestors

    expect(ancestors).to include(PGit::Error)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pgit-1.0.0 spec/pgit/error/user_spec.rb