Sha256: db4cff821164ff6d4e4a7b5ca7ff9d031b6318be36cda0aa5b43f6c36279c40e

Contents?: true

Size: 749 Bytes

Versions: 7

Compression:

Stored size: 749 Bytes

Contents

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

describe Hunspell do
  describe ".lang" do
    subject { super().lang }

    it "should have a default language" do
      expect(subject).to_not be_nil
      expect(subject).to_not be_empty
    end
  end

  describe ".directories" do
    subject { super().directories }

    it "should have directories to search within" do
      expect(subject).to_not be_empty
    end
  end

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

    it "should open the dictionary file for the default language" do
      subject.dict do |dict|
        expect(dict).to_not be_nil
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
ffi-hunspell-0.6.1 spec/hunspell_spec.rb
ffi-hunspell-0.6.0 spec/hunspell_spec.rb
ffi-hunspell-0.5.0 spec/hunspell_spec.rb
tolq-ffi-hunspell-0.5.0 spec/hunspell_spec.rb
ffi-hunspell-wtchappell-0.4.0 spec/hunspell_spec.rb
ffi-hunspell-0.4.0 spec/hunspell_spec.rb
ffi-hunspell-0.3.1 spec/hunspell_spec.rb