-
Notifications
You must be signed in to change notification settings - Fork 14k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
69c907f
commit cf926aa
Showing
3 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
4 changes: 3 additions & 1 deletion
4
spec/support/shared/contexts/metasploit/framework/spec/constants/cleaner.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# Use in a context to clean up the constants that are created by the module loader. | ||
RSpec.shared_context 'Metasploit::Framework::Spec::Constants cleaner' do | ||
after(:example) do | ||
$stderr.puts "cleaning constants" | ||
Metasploit::Framework::Spec::Constants.clean | ||
$stderr.puts "constants cleaned" | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters