Skip to content

Commit

Permalink
Merge pull request #213 from voormedia/skip-activerecord-internal-met…
Browse files Browse the repository at this point in the history
…adata

Skip resetting ActiveRecord::InternalMetadata, which breaks all tests for Rails 5
  • Loading branch information
rolftimmermans authored Jun 13, 2016
2 parents 22b44bf + e04b909 commit b198f67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ def reset_config_file
def reset_domain
if defined? ActiveRecord
ActiveRecord::Base.descendants.each do |model|
next if model.name == "ActiveRecord::InternalMetadata"
model.reset_column_information
Object.send :remove_const, model.name.to_sym if Object.const_defined? model.name.to_sym
end
Expand Down

0 comments on commit b198f67

Please sign in to comment.