spec/spec_helper.rb in ffi-hunspell-0.1.0 vs spec/spec_helper.rb in ffi-hunspell-0.2.0
- old
+ new
@@ -1,4 +1,12 @@
require 'rspec'
-require 'ffi'
+require 'ffi/hunspell'
include FFI
+
+RSpec.configure do |specs|
+ specs.before(:suite) do
+ if ENV['HUNSPELL_ROOT']
+ Hunspell.directories << ENV['HUNSPELL_ROOT']
+ end
+ end
+end