From 368294b2a937440413a13cfa84cab4947c49c0f5 Mon Sep 17 00:00:00 2001 From: Pat Hawks Date: Fri, 6 Jan 2017 05:55:50 -0600 Subject: [PATCH] Update tests to be position independent --- test/test_new_command.rb | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/test/test_new_command.rb b/test/test_new_command.rb index 78e6ac6f..a02f1565 100644 --- a/test/test_new_command.rb +++ b/test/test_new_command.rb @@ -40,12 +40,11 @@ class TestNewCommand < JekyllUnitTest should "display a success message" do Jekyll::Commands::New.process(@args) - output = Jekyll.logger.messages[-3] - output_last = Jekyll.logger.messages.last - success_message = "New jekyll site installed in #{@full_path.cyan}." - bundle_message = "Running bundle install in #{@full_path.cyan}..." + output = Jekyll.logger.messages + success_message = "New jekyll site installed in #{@full_path.cyan}. " + bundle_message = "Running bundle install in #{@full_path.cyan}... " assert_includes output, success_message - assert_includes output_last, bundle_message + assert_includes output, bundle_message end should "copy the static files in site template to the new directory" do