Baptiste Fontaine
a6d2723ef5
more core unit tests
...
Closes Homebrew/homebrew#47182 .
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-12-20 12:11:40 +01:00
William Woodruff
b0d5e17906
tweak String#undent so that only leading whitespace up to the first indentation level is gsubbed, change test_undent to reflect change and add test_undent_nested to test new behavior
2015-08-28 18:02:04 +08:00
BrewTestBot
13d544e11e
Core files style updates.
...
Closes Homebrew/homebrew#42354 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 13:22:35 +01:00
Jack Nagel
982e9239b8
Use a custom test class so we can avoid monkeypatching
2014-06-18 20:32:51 -05:00
Jack Nagel
3c9523516b
Clean up some test assertions
2014-06-04 16:31:57 -05:00
Baptiste Fontaine
74e4fdfce2
Fix for String#undent
...
Without it, String#undent would fail on unindented strings, e.g.:
"foo".undent
NoMethodError: undefined method `length' for nil:NilClass`
Closes Homebrew/homebrew#28873 .
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-05-02 19:50:27 -07:00
Jack Nagel
93f8c71e21
tests: clean up whitespace
...
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04 22:47:34 -05:00
Jack Nagel
90dbb8a141
Prune some requires from test files
...
testing_env already requires utils; set up the ARGV and ENV extensions
there as well.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04 22:47:34 -05:00
Michael Morgan
3ea550100f
extract undent test to test case
...
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-17 21:13:16 -07:00