Sha256: 60e4e69ccfb72530f18fc82bf270da07dc79a80a8552a4022e77266b9b8bb273

Contents?: true

Size: 611 Bytes

Versions: 1

Compression:

Stored size: 611 Bytes

Contents

require 'spec_helper'

describe WordScramble::LetterFrequency do
  it 'knows that "pilots" and "spoilt" have the same letters' do
    pilots = WordScramble::LetterFrequency.new("pilots")
    spoilt = WordScramble::LetterFrequency.new("spoilt")
    pilots.should == spoilt
  end

  it 'knows that "neocon" and "satan" have different letter' do
    neocon = WordScramble::LetterFrequency.new("neocon")
    satan = WordScramble::LetterFrequency.new("satan")
    neocon.should_not == satan
  end

  it "knows how long the word should be" do
    WordScramble::LetterFrequency.new("pop").length.should == 3
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
word_scramble-0.1.0 spec/letter_frequency_spec.rb