Sha256: 1a9fa955cf1c0199bbba783efb839cbefd588be647eecdf9e47bce2522166e7a
Contents?: true
Size: 709 Bytes
Versions: 6
Compression:
Stored size: 709 Bytes
Contents
require 'spec_helper' describe Object do describe '#is_any?' do subject { 1 } it do expect(subject).to respond_to(:is_any?) end context 'when no argument is passed' do it do expect(subject.is_any?).to be_falsey end end context 'when passing the correct class as argument' do it do expect(subject.is_any?(subject.class)).to be_truthy end context 'along any other class' do it do expect(subject.is_any?(Symbol, subject.class)).to be_truthy end end end context 'when passing the wrong class' do it do expect(subject.is_any?(Symbol)).to be_falsey end end end end
Version data entries
6 entries across 6 versions & 1 rubygems