Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Created a new spellcheck instance inside private_wordlist to pick up …

…new config
  • Loading branch information...
commit ec991388c403e1e419d409e9f95baaea8a98f089 1 parent 5f50f07
@drbrain drbrain authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 test/test_rdoc_generator_spellcheck.rb
View
9 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
Please sign in to comment.
Something went wrong with that request. Please try again.