Sha256: b55ca5a804e85f7e08e521107c2ab893e60f4c8b28fd1b8c4d27f90d31dcd3b0
Contents?: true
Size: 554 Bytes
Versions: 1
Compression:
Stored size: 554 Bytes
Contents
# encoding: utf-8 describe Assertion::NotImplementedError do subject(:error) { described_class.new klass, :foo } let(:klass) { double name: :Test } describe ".new" do it { is_expected.to be_kind_of ::NotImplementedError } 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 "Test#foo method not implemented" end end # describe #message end # describe Assertion::NotImplementedError
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
assertion-0.0.1 | spec/unit/assertion/exceptions/not_implemented_error_spec.rb |