Sha256: a3a9beec220fd0f819726d639c261331df999736e102d697f627a4f79853e3d1

Contents?: true

Size: 400 Bytes

Versions: 8

Compression:

Stored size: 400 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe Azeroth::Exception::InvalidOptions do
  describe '#message' do
    let(:exception) { described_class.new(%i[invalid options]) }
    let(:expected_message) do
      'Invalid keys on options initialization (invalid options)'
    end

    it 'shows invalid keys' do
      expect(exception.message).to eq(expected_message)
    end
  end
end

Version data entries

8 entries across 4 versions & 1 rubygems

Version Path
azeroth-0.6.1 spec/integration/yard/azeroth/exception/invalid_options_spec.rb
azeroth-0.6.1 spec/lib/azeroth/exception/invalid_options_spec.rb
azeroth-0.6.0 spec/integration/yard/azeroth/exception/invalid_options_spec.rb
azeroth-0.6.0 spec/lib/azeroth/exception/invalid_options_spec.rb
azeroth-0.5.0 spec/integration/yard/azeroth/exception/invalid_options_spec.rb
azeroth-0.5.0 spec/lib/azeroth/exception/invalid_options_spec.rb
azeroth-0.4.0 spec/integration/yard/azeroth/exception/invalid_options_spec.rb
azeroth-0.4.0 spec/lib/azeroth/exception/invalid_options_spec.rb