Sha256: 972f7f654f571c8ae1af25dfc15d0c9703b94c2ae8f6cc00825d6653d3b7cac4
Contents?: true
Size: 691 Bytes
Versions: 1
Compression:
Stored size: 691 Bytes
Contents
require 'spec_helper' describe LetterPressIsNotAsGoodAsBoggle do specify 'words are returned sorted by length asc and do not include duplicates or previous guesses' do unguessed_words = %w[abc ab dac] guessed_words = %w[adc dab] nonmatching_words = %w[x nek] all_words = unguessed_words + guessed_words + nonmatching_words letter_press = LetterPressIsNotAsGoodAsBoggle.new all_words do board %w[a b c d a] guessed guessed_words end letter_press.words.should == %w[ab abc dac] end specify 'assumes no guesses by default' do LetterPressIsNotAsGoodAsBoggle.new(%w[a b c]) { board %w[a b] }.words.should == %w[a b] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
letter_press_is_not_as_good_as_boggle-1.0.2 | spec/acceptance_spec.rb |