metasploit-framework/spec
Tod Beardsley 1deacad2be
Add a print_bad alias for print_error
Came up on Twitter, where Justin may have been trolling a little:

https://twitter.com/jstnkndy/status/798671298302017536

We have a `print_good` method, but not a `print_bad`, which seems a
little weird for Ruby -- opposite methods should be intuitive as Justin
is implying.

Anyway, I went with alias_method, thanks to the compelling argument at

https://github.com/bbatsov/ruby-style-guide#alias-method

...since Metasploit is all about the singleton, and didn't want to risk
some unexpected scoping thing.

Also dang, we define the `print_` methods like fifty billion times!
Really should fix that some day.
2016-11-15 19:20:42 -06:00
..
factories/mdm replace deprecated 'ignore' with 'transient' 2016-02-29 14:57:09 -06:00
file_fixtures use MetasploitModule as a class name 2016-03-08 14:02:44 +01:00
lib Add a print_bad alias for print_error 2016-11-15 19:20:42 -06:00
models Move shared example from pro into framework 2016-04-07 13:09:52 -05:00
modules update cache and add payload test 2016-09-29 21:19:55 -05:00
support Add a print_bad alias for print_error 2016-11-15 19:20:42 -06:00
tools update test to hook exist? rather than exists? 2016-04-21 06:56:48 -04:00
modules_spec.rb decribe -> RSpec.describe 2015-12-10 21:47:22 -06:00
msfupdate_spec.rb example_group and hook_scope conversions 2015-12-31 16:56:13 -06:00
spec_helper.rb Land #6388, Update msftidy to error when module super class is incorrect 2016-03-06 16:53:11 -06:00