Permalink
Browse files

fixing the load-path for jquery test js files

  • Loading branch information...
1 parent df9b7d7 commit 172d79b5aac902ff29d03419c3938ffea7ca286d @flavorjones flavorjones committed Jun 18, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/jquery/test_jquery.rb
View
6 test/jquery/test_jquery.rb
@@ -5,8 +5,8 @@ module JQuery
class TestJQuery < TestCase
def test_jquery
- Dir.chdir 'vendor/jquery/jquery' do
- doc = Taka::DOM::HTML(File.read('test/index.html'))
+ Dir.chdir 'vendor/jquery' do
+ doc = Taka::DOM::HTML(File.read('jquery/test/index.html'))
scripts = doc.getElementsByTagName 'script'
rt = Johnson::Runtime.new
@@ -17,7 +17,7 @@ def test_jquery
scripts.each do |tag|
if tag['src']
- filename = File.expand_path(tag['src'].sub('..', '.'))
+ filename = File.expand_path(tag['src'].sub('../dist', 'jquery/dist'))
puts "(running #{tag['src']} ...)" ; STDOUT.flush
rt.evaluate File.read(filename), filename, 1
else

0 comments on commit 172d79b

Please sign in to comment.