Update tests to be position independent
This commit is contained in:
parent
0f2013114c
commit
368294b2a9
|
|
@ -40,12 +40,11 @@ class TestNewCommand < JekyllUnitTest
|
||||||
|
|
||||||
should "display a success message" do
|
should "display a success message" do
|
||||||
Jekyll::Commands::New.process(@args)
|
Jekyll::Commands::New.process(@args)
|
||||||
output = Jekyll.logger.messages[-3]
|
output = Jekyll.logger.messages
|
||||||
output_last = Jekyll.logger.messages.last
|
success_message = "New jekyll site installed in #{@full_path.cyan}. "
|
||||||
success_message = "New jekyll site installed in #{@full_path.cyan}."
|
bundle_message = "Running bundle install in #{@full_path.cyan}... "
|
||||||
bundle_message = "Running bundle install in #{@full_path.cyan}..."
|
|
||||||
assert_includes output, success_message
|
assert_includes output, success_message
|
||||||
assert_includes output_last, bundle_message
|
assert_includes output, bundle_message
|
||||||
end
|
end
|
||||||
|
|
||||||
should "copy the static files in site template to the new directory" do
|
should "copy the static files in site template to the new directory" do
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue