Sha256: f4ca79c2cb91c25df727daf7ebae7fec749aec40ac8fb39f1e4c34520e989f58
Contents?: true
Size: 475 Bytes
Versions: 5
Compression:
Stored size: 475 Bytes
Contents
require 'helper' describe Twitter::NullObject do before do @null_object = Twitter::NullObject.new end describe '#nil?' do it 'returns true' do expect(@null_object.nil?).to be true end end describe 'calling any method' do it 'returns self' do expect(@null_object.any).to equal @null_object end end describe '#respond_to?' do it 'returns true' do expect(@null_object.respond_to?(:any)).to be true end end end
Version data entries
5 entries across 5 versions & 1 rubygems