Sha256: affd00777863b899f7ed348a6082fbeb815d0fdef691161cc82c4ceb14c7674d
Contents?: true
Size: 504 Bytes
Versions: 5
Compression:
Stored size: 504 Bytes
Contents
require "spec_helper" require "support/exception_matchers" module Hexx describe NotFoundError do subject { NotFoundError } it "inherits RuntimeError" do expect(subject).to inherit Hexx::RuntimeError end it "has customized message" do use_case = Hexx::UseCase.new allow(use_case) .to receive_message_chain(:errors, :messages, :values) .and_return %w(one two) expect(subject.new(use_case).message).to eq "Not found: one; two" end end end
Version data entries
5 entries across 5 versions & 1 rubygems