@@ -4,7 +4,7 @@ include ShouldRunSuccessfully
44
55describe " Initializing a new web project" do
66 it " creates a full web app successfully" do
7- puts " Web app: Running integration spec. This might take awhile..." .colorize(:yellow )
7+ test_io. puts " Web app: Running integration spec. This might take awhile..." .colorize(:yellow )
88 with_project_cleanup do
99 should_run_successfully " crystal run src/lucky.cr -- init.custom test-project"
1010 FileUtils .cp(" spec/support/cat.gif" , " test-project/public/assets/images/" )
@@ -26,7 +26,7 @@ describe "Initializing a new web project" do
2626 end
2727
2828 it " creates a full web app with generator" do
29- puts " Web app generators: Running integration spec. This might take awhile..." .colorize(:yellow )
29+ test_io. puts " Web app generators: Running integration spec. This might take awhile..." .colorize(:yellow )
3030 with_project_cleanup do
3131 should_run_successfully " crystal run src/lucky.cr -- init.custom test-project --no-auth"
3232
@@ -59,31 +59,31 @@ describe "Initializing a new web project" do
5959 end
6060
6161 it " creates an api only web app successfully" do
62- puts " Api only: Running integration spec. This might take awhile..." .colorize(:yellow )
62+ test_io. puts " Api only: Running integration spec. This might take awhile..." .colorize(:yellow )
6363 with_project_cleanup do
6464 should_run_successfully " crystal run src/lucky.cr -- init.custom test-project --api"
6565 compile_and_run_specs_on_test_project
6666 end
6767 end
6868
6969 it " creates an api only app without auth" do
70- puts " Api only without auth: Running integration spec. This might take awhile..." .colorize(:yellow )
70+ test_io. puts " Api only without auth: Running integration spec. This might take awhile..." .colorize(:yellow )
7171 with_project_cleanup do
7272 should_run_successfully " crystal run src/lucky.cr -- init.custom test-project --api --no-auth"
7373 compile_and_run_specs_on_test_project
7474 end
7575 end
7676
7777 it " creates a full app without auth" do
78- puts " Web app without auth: Running integration spec. This might take awhile..." .colorize(:yellow )
78+ test_io. puts " Web app without auth: Running integration spec. This might take awhile..." .colorize(:yellow )
7979 with_project_cleanup do
8080 should_run_successfully " crystal run src/lucky.cr -- init.custom test-project --no-auth"
8181 compile_and_run_specs_on_test_project
8282 end
8383 end
8484
8585 it " creates a full app in a different directory" do
86- puts " Web app with custom directory: Running integration spec." .colorize(:yellow )
86+ test_io. puts " Web app with custom directory: Running integration spec." .colorize(:yellow )
8787 with_project_cleanup(project_directory: " /tmp/home/bob/test-project" , skip_db_drop: true ) do
8888 FileUtils .mkdir_p " /tmp/home/bob"
8989 should_run_successfully " crystal run src/lucky.cr -- init.custom test-project --dir /tmp/home/bob"
0 commit comments