lib/sprout/test_helper.rb in sprout-1.1.2.pre vs lib/sprout/test_helper.rb in sprout-1.1.3.pre

- old
+ new

@@ -60,10 +60,17 @@ ## # Override the setup method in order to record the # working directory before the test method runs. def setup super + + # Prevent log messages from interrupting test output, + # and create a pipe that test cases can read to ensure + # user output is provided properly. + Sprout.stdout = Sprout::OutputBuffer.new + Sprout.stderr = Sprout::OutputBuffer.new + @start_path = Dir.pwd end ## # Override the teardown method in order to perform @@ -421,12 +428,8 @@ # # Other helper methods are: # app_root_files - put this in teardown to show files generated by the test method (e.g. p app_root_files) # bare_setup - place this in setup method to create the app_root folder for each test # bare_teardown - place this in teardown method to destroy the TMP_ROOT or app_root folder after each test - -# Prevent log messages from interrupting the test output: -Sprout.stdout = Sprout.stdout_test -Sprout.stderr = Sprout.stderr_test #Sprout::ProgressBar.debug = true