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-1.6.7 spec/lib/sinclair/exception/invalid_options_spec.rb
sinclair-1.6.6 spec/lib/sinclair/exception/invalid_options_spec.rb
sinclair-1.6.5 spec/lib/sinclair/exception/invalid_options_spec.rb
sinclair-1.6.4 spec/lib/sinclair/exception/invalid_options_spec.rb
sinclair-1.6.3 spec/lib/sinclair/exception/invalid_options_spec.rb
sinclair-1.6.2 spec/lib/sinclair/exception/invalid_options_spec.rb
sinclair-1.6.1 spec/lib/sinclair/exception/invalid_options_spec.rb
sinclair-1.6.0 spec/lib/sinclair/exception/invalid_options_spec.rb