Skip to content

Commit

Permalink
Apparently stdlib isn't std enough
Browse files Browse the repository at this point in the history
  • Loading branch information
Yehuda Katz + Carl Lerche committed Jul 1, 2009
1 parent 3990c12 commit 1a6f4d4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions activesupport/test/isolation_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1a6f4d4

Please sign in to comment.