require "spec_helper" require "support/exception_matchers" module Hexx describe UseCaseInvalid do subject { UseCaseInvalid } it "inherits RuntimeError" do expect(subject).to inherit Hexx::RuntimeError end it "has customized message" do expect(subject).to have_error_message "Invalid use case" end end end