Sha256: 9dc395689a679a3e2f2071fea1bee12f3697bfac1628e54cab9bf79e3ee119a6

Contents?: true

Size: 516 Bytes

Versions: 2

Compression:

Stored size: 516 Bytes

Contents

# encoding: utf-8
#
# This file is part of the bovem gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>.
# Licensed under the MIT license, which can be found at https://choosealicense.com/licenses/mit.
#

require "spec_helper"

describe Bovem::Errors::Error do
  describe "#initialize" do
    it "copies attributes" do
      error = Bovem::Errors::Error.new("A", "B", "C")
      expect(error.target).to eq("A")
      expect(error.reason).to eq("B")
      expect(error.message).to eq("C")
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bovem-4.0.3 spec/bovem/errors_spec.rb
bovem-4.0.2 spec/bovem/errors_spec.rb