Sha256: 52ff6913bf9ace8a557dc6cc98f0600229ee9c5ae346b24f830dab5a51fc1550

Contents?: true

Size: 345 Bytes

Versions: 2

Compression:

Stored size: 345 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hexx-0.1.1 spec/hexx/exceptions/use_case_invalid_spec.rb
hexx-0.1.0 spec/hexx/exceptions/use_case_invalid_spec.rb