Sha256: 9f1e1506e64132ce2300845609cdd37ca6cf5b1f7c29f2b16dfab0538be409f1

Contents?: true

Size: 456 Bytes

Versions: 2

Compression:

Stored size: 456 Bytes

Contents

# encoding: utf-8

describe AbstractMapper::Errors::UnknownCommand do

  subject(:error) { described_class.new :foo }

  describe ".new" do

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

  end # describe .new

  describe "#message" do

    subject { error.message }
    it { is_expected.to eql "'foo' is not a registered DSL command" }

  end # describe #message

end # describe AbstractMapper::Errors::UnknownCommand

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
abstract_mapper-0.0.2 spec/unit/abstract_mapper/errors/unknown_command_spec.rb
abstract_mapper-0.0.1 spec/unit/abstract_mapper/errors/unknown_command_spec.rb