Permalink
Browse files

Created a new spellcheck instance inside private_wordlist to pick up …

…new config
  • Loading branch information...
1 parent 5f50f07 commit ec991388c403e1e419d409e9f95baaea8a98f089 @drbrain drbrain committed Apr 6, 2012
Showing with 7 additions and 2 deletions.
  1. +7 −2 test/test_rdoc_generator_spellcheck.rb
@@ -191,7 +191,7 @@ def test_find_misspelled_underscore
word, offset = report.shift
assert_equal 'gud', word
- assert_equal 0, offset
+ assert_equal 0, offset
end
end
@@ -201,7 +201,10 @@ def test_find_misspelled_utf_8
report = @sc.find_misspelled c
- assert_empty report
+ word, offset = report.shift
+
+ assert_equal 'Gülker', word
+ assert_equal 8, offset
end
end
@@ -602,6 +605,8 @@ def private_wordlist
Tempfile.open 'personal_repl' do |repl|
ENV['ASPELL_CONF'] = "personal #{wordlist.path};repl #{repl.path}"
+ @sc = @SC.new @options
+
yield
end
end

0 comments on commit ec99138

Please sign in to comment.