Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Apparently stdlib isn't std enough

  • Loading branch information...
commit 1a6f4d424a934f5f2d2fb13b3541566719c2d9a4 1 parent 3990c12
Yehuda Katz + Carl Lerche authored
Showing with 6 additions and 4 deletions.
  1. +6 −4 activesupport/test/isolation_test.rb
View
10 activesupport/test/isolation_test.rb
@@ -50,13 +50,15 @@ def teardown
end
test "resets requires one" do
- assert !defined?(Curses)
- require 'curses'
+ assert !defined?(OmgOmg)
+ assert_equal 0, $LOADED_FEATURES.grep(/fixtures\/omgomg/).size
+ require File.expand_path(File.join(File.dirname(__FILE__), "fixtures", "omgomg"))
end
test "resets requires two" do
- assert !defined?(Curses)
- require 'curses'
+ assert !defined?(OmgOmg)
+ assert_equal 0, $LOADED_FEATURES.grep(/fixtures\/omgomg/).size
+ require File.expand_path(File.join(File.dirname(__FILE__), "fixtures", "omgomg"))
end
end
else
Please sign in to comment.
Something went wrong with that request. Please try again.