spec/dictionary_spec.rb in ffi-hunspell-0.6.0 vs spec/dictionary_spec.rb in ffi-hunspell-0.6.1

- old
+ new

@@ -56,10 +56,11 @@ expect(subject.valid?('dog')).to be true expect(subject.valid?('dxg')).to be false end describe "#add_dic" do - let(:extra_dic) { File.join(File.dirname(__FILE__),'fixtures/extra.dic') } + let(:fixtures_dir) { File.expand_path('../fixtures',__FILE__) } + let(:extra_dic) { File.join(fixtures_dir,'extra.dic') } if FFI::Hunspell.respond_to?(:Hunspell_add_dic) context "when libhunspell supports add_dic" do before do subject.add_dic(extra_dic)