Sha256: 35b9ae6914a50c12d6c382b824d34f8af08047eae263e8c67936d5570eaa83e0
Contents?: true
Size: 367 Bytes
Versions: 18
Compression:
Stored size: 367 Bytes
Contents
require 'spec_helper' describe 'String#blank?' do it 'returns true for an empty string' do expect(''.blank?).to be_truthy end it 'returns true for a string with only whitespace in it' do expect(' '.blank?).to be_truthy end it 'returns false for a string with non-whitespace chars in it' do expect(' test'.blank?).to be_falsey end end
Version data entries
18 entries across 15 versions & 5 rubygems