Sha256: 3094580cdd8edbfc4879d40edac2489f32609a0728da621e89045b83ecbac790

Contents?: true

Size: 736 Bytes

Versions: 3

Compression:

Stored size: 736 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe LittleWeasel do

  before do
    @spell = LittleWeasel::Checker.instance
  end
  
  it 'should create a LittleWeasel object' do
    @spell.should be_an_instance_of LittleWeasel::Checker
  end
  
  it 'should return true for valid word' do
    @spell.exists?('apple').should == true
  end

  it 'should return false for invalid word' do
    @spell.exists?('appel').should == false
  end

#  it 'time test' do
#    words = %w{ all bad cap dad eat fad glad had inch jump kind lend monster on put quiet run sad tape under vector was xenophobe yes zebra }
#
#    words *= 100
#
#    words.each{|word| puts(word); @spell.exists?(word).should == true }
#  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
LittleWeasel-0.0.3 test/checker/checker_spec.rb
LittleWeasel-0.0.2 test/checker/checker_spec.rb
LittleWeasel-0.0.1 test/checker/checker_spec.rb