public
Description: A plugin to make the process of creating a negative captcha in Rails much less painless
Clone URL: git://github.com/subwindow/negative-captcha.git
Fix test sourcing problem
Erik Peterson (author)
Mon Jun 30 09:10:25 -0700 2008
commit  8ce13740178ea25231770f9f9e50252dabe4fa5d
tree    72a2506a1a54a0e05d3173a0bdbcf9f4c3d51d22
parent  347835f7d636e39a978f5d6a99f39c79ef3e477d
...
 
 
1
2
3
...
41
42
43
44
45
 
...
1
2
3
4
5
...
43
44
45
 
46
47
0
@@ -1,3 +1,5 @@
0
+require 'md5'
0
+
0
 class NegativeCaptcha
0
   attr_accessor :fields
0
   attr_accessor :values
0
@@ -41,4 +43,4 @@ class NegativeCaptcha
0
       end
0
     end
0
   end
0
-end
0
\ No newline at end of file
0
+end
...
1
 
 
 
 
2
3
4
...
90
91
92
93
94
 
...
 
1
2
3
4
5
6
7
...
93
94
95
 
96
97
0
@@ -1,4 +1,7 @@
0
-require File.expand_path(File.join(File.dirname(__FILE__), '../../../../test/test_helper'))
0
+require 'rubygems'
0
+require 'activesupport'
0
+require 'test/unit'
0
+require File.expand_path(File.join(File.dirname(__FILE__), '../lib/negative_captcha'))
0
 
0
 class NegativeCaptchaTest < Test::Unit::TestCase
0
   def test_valid_submission
0
@@ -90,4 +93,4 @@ class NegativeCaptchaTest < Test::Unit::TestCase
0
     assert !filled_form.valid?
0
     assert filled_form.error.match(/hidden/i).is_a?(MatchData)
0
   end
0
-end
0
\ No newline at end of file
0
+end

Comments

    No one has commented yet.