16 Commits

Author SHA1 Message Date
Jack Nagel
aaaab946ec Make inreplace errors fatal
Closes Homebrew/homebrew#32649.
Closes Homebrew/homebrew#32703.
2014-09-28 01:11:31 -05:00
Jack Nagel
54ac9c560a Revert "Add test for inreplace sub!/gsub! with hash argument"
Ruby 1.8 doesn't support this, so we don't officially support it (yet).

This reverts commit 7d5eb6f5e2da42c1378fefb63fde55cae97a3909.
2014-09-27 23:53:01 -05:00
Jack Nagel
14594741e1 Add test for inreplace sub!/gsub! with hash argument 2014-09-27 23:31:08 -05:00
Jack Nagel
9f9f5bf31c Add test for inreplace sub!/gsub! 2014-09-27 23:31:08 -05:00
Jack Nagel
701691c261 Add missing test for inreplace with tabs 2014-09-26 22:01:00 -05:00
Jack Nagel
c0cb58177e Fix formatting in inreplace tests 2014-09-26 21:55:26 -05:00
Jack Nagel
982e9239b8 Use a custom test class so we can avoid monkeypatching 2014-06-18 20:32:51 -05:00
Jack Nagel
866b3cf6a8 Add test for String#get_make_var 2013-02-15 00:39:22 -06: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
Adam Vandenberg
b13baedfd8 Move string extensions 2011-03-12 11:55:03 -08:00
Adam Vandenberg
d49230733f Move inreplace tests to separate file. 2010-04-06 08:27:11 -07:00
Adam Vandenberg
098b97801b Use tab/space when finding vars (and not newlines). 2010-03-16 12:00:00 -07:00
Martin Kühl
d03411775f Fix change_make_var! for empty variables.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-03-16 11:54:09 -07:00
Adam Vandenberg
6671d6275d remove_make_var! should not leave an empty assignment 2010-02-09 09:21:25 -08:00
Adam Vandenberg
a309403d8a Update test suite.
* Break single test case class into several test cases.
* Fix broken arch test.
* Make update tests optional (seem to only work for mxcl).
* Add more tests.
* Move fixtures to separate folder.
2010-02-02 09:08:10 -08:00