Sha256: 26e7bd77eac19587d94af3ce0714cc9aab1b7d8055c7825492f5734655b4bd5d

Contents?: true

Size: 401 Bytes

Versions: 28

Compression:

Stored size: 401 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe Sinclair::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

28 entries across 28 versions & 1 rubygems

Version Path
sinclair-2.1.1 spec/lib/sinclair/exception/invalid_options_spec.rb
sinclair-2.1.0 spec/lib/sinclair/exception/invalid_options_spec.rb
sinclair-2.0.1 spec/lib/sinclair/exception/invalid_options_spec.rb
sinclair-2.0.0 spec/lib/sinclair/exception/invalid_options_spec.rb
sinclair-1.16.3 spec/lib/sinclair/exception/invalid_options_spec.rb
sinclair-1.16.2 spec/lib/sinclair/exception/invalid_options_spec.rb
sinclair-1.16.1 spec/lib/sinclair/exception/invalid_options_spec.rb
sinclair-1.16.0 spec/lib/sinclair/exception/invalid_options_spec.rb
sinclair-1.15.0 spec/lib/sinclair/exception/invalid_options_spec.rb
sinclair-1.14.2 spec/lib/sinclair/exception/invalid_options_spec.rb
sinclair-1.14.1 spec/lib/sinclair/exception/invalid_options_spec.rb
sinclair-1.14.0 spec/lib/sinclair/exception/invalid_options_spec.rb
sinclair-1.13.0 spec/lib/sinclair/exception/invalid_options_spec.rb
sinclair-1.12.1 spec/lib/sinclair/exception/invalid_options_spec.rb
sinclair-1.12.0 spec/lib/sinclair/exception/invalid_options_spec.rb
sinclair-1.11.0 spec/lib/sinclair/exception/invalid_options_spec.rb
sinclair-1.10.0 spec/lib/sinclair/exception/invalid_options_spec.rb
sinclair-1.9.0 spec/lib/sinclair/exception/invalid_options_spec.rb
sinclair-1.8.0 spec/lib/sinclair/exception/invalid_options_spec.rb
sinclair-1.7.0 spec/lib/sinclair/exception/invalid_options_spec.rb