Permalink
Browse files

テストを通した

  • Loading branch information...
1 parent 1e809ef commit fb4f331750290ed408c205526e4aae6ebbabc77a @pasberth committed Nov 21, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/endlessruby/extensions.rb
  2. +1 −1 src/endlessruby/extensions.er
@@ -45,7 +45,7 @@ def require path
is_that_dir = false
($LOAD_PATH | $:).each do |load_path|
real_path = File.join load_path, path
- unless File.exist? real_path
+ if !File.exist?(real_path) || File.directory?(real_path)
if File.exist? "#{real_path}.er"
real_path = "#{real_path}.er"
else
@@ -40,7 +40,7 @@ module Kernel
is_that_dir = false
($LOAD_PATH | $:).each do |load_path|
real_path = File.join load_path, path
- unless File.exist? real_path
+ if !File.exist?(real_path) || File.directory?(real_path)
if File.exist? "#{real_path}.er"
real_path = "#{real_path}.er"
else

0 comments on commit fb4f331

Please sign in to comment.