Sha256: 180337ab9a6e11d4a405f6207e42af762201dbb6f36ef6e6cfe20c0c89f0cca9

Contents?: true

Size: 496 Bytes

Versions: 1

Compression:

Stored size: 496 Bytes

Contents

require 'spec_helper'

describe 'some acceptance specs' do
  specify 'words are returned sorted by length asc and do not include duplicates or previous guesses' do
    unguessed   = %w[ab abc 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 %w[adc dab]
    end

    letter_press.words.should == %w[ab abc dac]
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
letter_press_is_not_as_good_as_boggle-1.0.0 spec/acceptance_spec.rb