We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48141f9 commit 343824fCopy full SHA for 343824f
.irbrc
@@ -3,9 +3,7 @@ def reload!
3
Object.send(:remove_const, :FactoryBot) if Object.const_defined?(:FactoryBot)
4
5
# Remove all files from the 'loaded' register
6
- $LOADED_FEATURES.grep(/factory_bot/).each do |path|
7
- $LOADED_FEATURES.delete(path)
8
- end
+ $LOADED_FEATURES.delete_if { |path| path.match?(/factory_bot/) }
9
10
# re-load it again
11
require "factory_bot"
0 commit comments