Sha256: 36d520e895be0b20120c90a3db6210ab07f333e112a3b4679e06a7194c590839
Contents?: true
Size: 568 Bytes
Versions: 4
Compression:
Stored size: 568 Bytes
Contents
require "spec_helper" require "cascade/exceptions/unsupported_component" describe Cascade::UnsupportedComponent do subject { Cascade::UnsupportedComponent.new } it "exception raisable" do assert_respond_to subject, :exception end context "#message" do it "uses passed message" do subject = Cascade::UnsupportedComponent.new("custom_message") assert_equal subject.message, "custom_message" end it "uses default message if not passed" do assert_equal subject.message, Cascade::UnsupportedComponent::MESSAGE end end end
Version data entries
4 entries across 4 versions & 1 rubygems