Sha256: a3ee13577d57af75653cbcb1b779e5ea3d406a349071d7bf77b935a2051768ec
Contents?: true
Size: 643 Bytes
Versions: 1
Compression:
Stored size: 643 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 = %w[abc ab dac] guessed = %w[adc dab] nonmatching = %w[x nek] all_words = unguessed + guessed + nonmatching letter_press = LetterPressIsNotAsGoodAsBoggle.new all_words do board %w[a b c d a] guesses guessed 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.1 | spec/acceptance_spec.rb |