fix assertions
This commit is contained in:
parent
9f84e60ac9
commit
a3ad0a7b67
|
@ -43,7 +43,7 @@ module DescendantsTrackerTestCases
|
|||
protected
|
||||
|
||||
def assert_equal_sets(expected, actual)
|
||||
Set.new(expected) == Set.new(actual)
|
||||
assert_equal Set.new(expected), Set.new(actual)
|
||||
end
|
||||
|
||||
def mark_as_autoloaded(*klasses)
|
||||
|
@ -62,4 +62,4 @@ module DescendantsTrackerTestCases
|
|||
ActiveSupport::Dependencies.autoloaded_constants = old_autoloaded if defined? ActiveSupport::Dependencies
|
||||
ActiveSupport::DescendantsTracker.class_eval("@@direct_descendants").replace(old_descendants)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue