Skip to content
Browse files

tweaked file requiring code

  • Loading branch information...
1 parent 8102242 commit 51c769944a302ec0b69c63bb0e25e47fa1eebafb @mojombo mojombo committed Sep 7, 2006
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/chronic.rb
  2. +2 −2 test/suite.rb
View
2 lib/chronic.rb
@@ -19,7 +19,7 @@
require 'chronic/repeater'
Dir["#{File.dirname(__FILE__)}/chronic/repeaters/*.rb"].each do |file|
- require 'chronic/repeaters/' + File.basename(file)[0..-4]
+ require file
end
module Chronic
View
4 test/suite.rb
@@ -3,7 +3,7 @@
tests = Dir["#{File.dirname(__FILE__)}/test_*.rb"]
tests.delete_if { |o| o =~ /test_parsing/ }
tests.each do |file|
- require File.basename(file)[0..-4]
+ require file
end
-require 'test_parsing'
+require File.dirname(__FILE__) + '/test_parsing.rb'

0 comments on commit 51c7699

Please sign in to comment.
Something went wrong with that request. Please try again.