Sha256: e4c1df5b0ec02685ad4a78390316027504310c9849d36e8aeefae231cbcfed6b
Contents?: true
Size: 500 Bytes
Versions: 1
Compression:
Stored size: 500 Bytes
Contents
# encoding: utf-8 describe Assertion::NameError do subject(:error) { described_class.new :foo, :bar } describe ".new" do it { is_expected.to be_kind_of ::NameError } it { is_expected.to be_frozen } end # describe .new describe "#message" do subject(:message) { error.message } it "returns a proper message" do expect(subject) .to include "Wrong name(s) for attribute(s): foo, bar" end end # describe #message end # describe Assertion::NameError
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
assertion-0.0.1 | spec/unit/assertion/exceptions/name_error_spec.rb |