Skip to content

Commit

Permalink
remove constants preventing memory leaks #2312
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Spangle committed Sep 10, 2016
1 parent 4788178 commit a51bba8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/rspec/core/world.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def ordered_example_groups
#
# Reset world to 'scratch' before running suite.
def reset
example_groups.reduce(&:remove_all_constants)
example_groups.clear
@shared_example_group_registry = nil
end
Expand Down

0 comments on commit a51bba8

Please sign in to comment.