Sha256: e57d12419268e4f86790a7becc386a7bff151b8ad9a2aad584fcf8c4dd33571a

Contents?: true

Size: 334 Bytes

Versions: 13

Compression:

Stored size: 334 Bytes

Contents

# frozen_string_literal: true

describe Object do
  describe 'yard' do
    describe '#is_any?' do
      context 'when none match' do
        it do
          object = [1, 2, 3]

          expect(object.is_any?(Hash, Class)).to eq(false)
          expect(object.is_any?(Hash, Array)).to eq(true)
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
sinclair-2.1.1 spec/integration/yard/sinclair/core_ext/object_spec.rb
sinclair-2.1.0 spec/integration/yard/sinclair/core_ext/object_spec.rb
sinclair-2.0.1 spec/integration/yard/sinclair/core_ext/object_spec.rb
sinclair-2.0.0 spec/integration/yard/sinclair/core_ext/object_spec.rb
sinclair-1.16.3 spec/integration/yard/sinclair/core_ext/object_spec.rb
sinclair-1.16.2 spec/integration/yard/sinclair/core_ext/object_spec.rb
sinclair-1.16.1 spec/integration/yard/sinclair/core_ext/object_spec.rb
sinclair-1.16.0 spec/integration/yard/sinclair/core_ext/object_spec.rb
sinclair-1.15.0 spec/integration/yard/sinclair/core_ext/object_spec.rb
sinclair-1.14.2 spec/integration/yard/sinclair/core_ext/object_spec.rb
sinclair-1.14.1 spec/integration/yard/sinclair/core_ext/object_spec.rb
sinclair-1.14.0 spec/integration/yard/sinclair/core_ext/object_spec.rb
sinclair-1.13.0 spec/integration/yard/sinclair/core_ext/object_spec.rb