public
Description: Embedded 'reply' links in blog comments
Homepage: http://drnicjavascript.rubyforge.org/comment_replies
Clone URL: git://github.com/drnic/comment_replies.git
move tests to test/unit; update testing helpers
drnic (author)
Sat Feb 16 15:23:32 -0800 2008
commit  87f4361f5315c06a0c26e0722cfb34b2378b7388
tree    f599907216582f775378dbb5394be75936abcc57
parent  7e20e817c69a3427f3f493da8086e806f93f8617
...
87
88
89
90
 
91
92
93
...
87
88
89
 
90
91
92
93
0
@@ -87,7 +87,7 @@ JavaScriptTestTask.new(:test_units) do |t|
0
   t.mount("/src")
0
   t.mount("/test")
0
 
0
- Dir["test/*_test.html"].sort.each do |test_file|
0
+ Dir["test/unit/*_test.html"].sort.each do |test_file|
0
     tests = testcases ? { :url => "/#{test_file}", :testcases => testcases } : "/#{test_file}"
0
     test_filename = test_file[/.*\/(.+?)\.html/, 1]
0
     t.run(tests) unless tests_to_run && !tests_to_run.include?(test_filename)
...
1
 
...
 
1
0
@@ -1 +1 @@
0
-script/rstakeout "rake test:recent:javascript" test/*_test.html src/*.js
0
+script/rstakeout "rake test:recent:javascript" test/unit/*_test.html src/*.js
...
10
11
12
13
 
14
15
16
...
20
21
22
23
 
24
25
26
...
10
11
12
 
13
14
15
16
...
20
21
22
 
23
24
25
26
0
@@ -10,7 +10,7 @@ namespace :test do
0
 
0
       since = TEST_CHANGES_SINCE
0
       touched = FileList[
0
- 'test/*_test.html',
0
+ 'test/unit/*_test.html',
0
         'src/*.js'].select { |path| File.mtime(path) > since }
0
       next if touched.blank?
0
       
0
@@ -20,7 +20,7 @@ namespace :test do
0
       
0
       touched.each do |file|
0
         if file =~ /\/([^\/]+)\.js$/
0
- file = "test/#{$1}_test.html"
0
+ file = "test/unit/#{$1}_test.html"
0
         end
0
         file = "#{APP_ROOT}/#{file}"
0
         unless File.exists?(file)
...
94
95
96
97
 
 
 
 
98
99
100
...
94
95
96
 
97
98
99
100
101
102
103
0
@@ -94,7 +94,10 @@
0
       </form>
0
     </div>
0
     
0
- <h2>What</h2>
0
+ <p><span class="caps">NOTE</span>: the &#8216;reply&#8217; links were added dynamically!</p>
0
+
0
+
0
+ <h2>What</h2>
0
 
0
 
0
   <p>This JavaScript project makes it quick and easy to reply

Comments

    No one has commented yet.