Sha256: 1c574503363fb53e1106508d700ee0df107b21368d4a0e593ad6f72a8de3d404

Contents?: true

Size: 472 Bytes

Versions: 1

Compression:

Stored size: 472 Bytes

Contents

# encoding: utf-8

describe AbstractMapper::Errors::WrongRule do

  subject(:error) { described_class.new Symbol }

  describe ".new" do

    it { is_expected.to be_kind_of TypeError }
    it { is_expected.to be_frozen }

  end # describe .new

  describe "#message" do

    subject { error.message }
    it do
      is_expected.to eql "Symbol is not a subclass of AbstractMapper::Rule"
    end

  end # describe #message

end # describe AbstractMapper::Errors::WrongRule

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
abstract_mapper-0.0.2 spec/unit/abstract_mapper/errors/wrong_rule_spec.rb