spec/hunspell_spec.rb in ffi-hunspell-0.3.0 vs spec/hunspell_spec.rb in ffi-hunspell-0.3.1

- old
+ new

@@ -1,25 +1,35 @@ 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 + describe ".lang" do + subject { super().lang } - it "should have directories to search within" do - subject.directories.should_not be_empty + it "should have a default language" do + expect(subject).to_not be_nil + expect(subject).to_not be_empty + end end - it "should open a dictionary file" do - subject.dict('en_US') do |dict| - dict.should_not be_nil + describe ".directories" do + subject { super().directories } + + it "should have directories to search within" do + expect(subject).to_not be_empty end end - it "should open the dictionary file for the default language" do - subject.dict do |dict| - dict.should_not be_nil + 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