Sha256: 066484486d681b64edd8bb832202b84782d9b76be21929915307b6b2161d8b11
Contents?: true
Size: 717 Bytes
Versions: 1
Compression:
Stored size: 717 Bytes
Contents
# coding: utf-8 require 'spec_helper' describe ExplicitWords do let(:explicit_content) { "I'm wondering if this thing fucking works." } let(:clean_content) { "I'm sure it's working just fine." } describe '#check' do context 'when content has explicits' do it 'returns true' do expect(ExplicitWords.check(explicit_content)).to eq true end end context 'when content has explicits of varying case' do it 'returns true' do expect(ExplicitWords.check('FuCK')).to eq true end end context 'when content does not have explicits' do it 'returns false' do expect(ExplicitWords.check(clean_content)).to eq false end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
explicit_words-0.0.1 | spec/lib/explicit_words_spec.rb |