Sha256: b045d902b409d337e8913e16ce7893275caf06ce3586a6bdd4ef87c78131501b
Contents?: true
Size: 634 Bytes
Versions: 1
Compression:
Stored size: 634 Bytes
Contents
module DictionaryMacros def set_up_custom_dictionary # Custom dictionary files defined in spec/support/dictionary indices_file = YAML.load_file(File.expand_path('../dictionary/indices.yml', __FILE__)) words_file = YAML.load_file(File.expand_path('../dictionary/words.yml', __FILE__)) # Use a custom dictionary files for tests. allow(YAML).to receive(:load_file).with(File.expand_path('../../../lib/eman/dictionary/indices.yml', __FILE__)).and_return(indices_file) allow(YAML).to receive(:load_file).with(File.expand_path('../../../lib/eman/dictionary/words.yml', __FILE__)).and_return(words_file) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eman-0.0.3 | spec/support/dictionary_macros.rb |