Sha256: 438547df5ce8f31738a9175673e422962cec725043d39c3d971c66c748e9e13c
Contents?: true
Size: 514 Bytes
Versions: 1
Compression:
Stored size: 514 Bytes
Contents
require 'spec_helper' require 'nb_class/utils' describe NBClass::Utils do context 'string break in words' do it 'should be brokwn in array of words and remove punctuation marks' do phrase = "word1, word2? word3! word4: word5; word6. word7 word8/ word9|" expected_array = ["word1", "word2", "word3", "word4", "word5", "word6", "word7", "word8", "word9"] actual_array = NBClass::Utils.break_phrase_in_word_array(phrase) expect(actual_array).to be_eql(expected_array) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nb_class-0.0.1 | spec/nb_class/utils_spec.rb |