Sha256: 1779af8adff183d5a212743c05a8625d5a0e79ca1269a207be439dbc453db94d

Contents?: true

Size: 559 Bytes

Versions: 7

Compression:

Stored size: 559 Bytes

Contents

require 'spec_helper'
require 'ffi/hunspell/hunspell'

describe Hunspell do
  it "should have a default language" do
    subject.lang.should_not be_nil
    subject.lang.should_not be_empty
  end

  it "should have directories to search within" do
    subject.directories.should_not be_empty
  end

  it "should open a dictionary file" do
    subject.dict('en_US') do |dict|
      dict.should_not be_nil
    end
  end

  it "should open the dictionary file for the default language" do
    subject.dict do |dict|
      dict.should_not be_nil
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ffi-hunspell-0.3.0 spec/hunspell_spec.rb
ffi-hunspell-0.2.6 spec/hunspell_spec.rb
ffi-hunspell-0.2.5 spec/hunspell_spec.rb
ffi-hunspell-0.2.4 spec/hunspell_spec.rb
ffi-hunspell-0.2.3 spec/hunspell_spec.rb
ffi-hunspell-0.2.2 spec/hunspell_spec.rb
ffi-hunspell-0.2.0 spec/hunspell_spec.rb