test/integration/spell_test.rb in ultrasphinx-1.8 vs test/integration/spell_test.rb in ultrasphinx-1.9

- old
+ new

@@ -6,10 +6,14 @@ def test_load_errors_are_rescued # XXX don't know how to test this sanely end def test_spelling - assert_equal nil, Ultrasphinx::Spell.correct("correct words") - assert_equal "garbled words", Ultrasphinx::Spell.correct("glarbled words") + if defined?(Aspell) + assert_equal nil, Ultrasphinx::Spell.correct("correct words") + assert_equal "garbled words", Ultrasphinx::Spell.correct("glarbled words") + else + STDERR.puts "No Aspell found" + end end end \ No newline at end of file