- 
  Notifications
 You must be signed in to change notification settings 
- Fork 808
Commit 4ee1708
Test that the model namespace isn't polluted.
The goal of ClassMethodsProxy is to avoid polluting the target's namespace,
but it was possible to do this by accident when calling `class_eval` before
ActiveSupport was completely loaded. This test ensures the namespace isn't
polluted, regardless of the load state of ActiveSupport.1 parent 33aa4bb commit 4ee1708
File tree
1 file changed
+4
-0
lines changed- elasticsearch-model/spec/elasticsearch/model/adapters/active_record
1 file changed
+4
-0
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
|  | |||
| 52 | 52 |  | |
| 53 | 53 |  | |
| 54 | 54 |  | |
| 55 | + | ||
| 56 | + | ||
| 57 | + | ||
| 58 | + | ||
| 55 | 59 |  | |
| 56 | 60 |  | |
| 57 | 61 |  | |
|  | |||
0 commit comments