Skip to content

Commit 8f19965

Browse files
committed
Working through each spec iteration
1 parent 087e568 commit 8f19965

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

spec/end_to_end/api_no_auth_spec.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe "Lucky CLI", tags: "end_to_end" do
1414
should_run_successfully "crystal script/setup.cr"
1515
should_run_successfully "crystal build src/test_project.cr"
1616
should_run_successfully "crystal spec"
17-
should_run_successfully "crystal run ../src/lucky.cr -- tasks"
17+
should_run_successfully "lucky tasks"
1818
end
1919
end
2020
end

spec/end_to_end/api_with_auth_spec.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe "Lucky CLI", tags: "end_to_end" do
1414
should_run_successfully "crystal script/setup.cr"
1515
should_run_successfully "crystal build src/test_project.cr"
1616
should_run_successfully "crystal spec"
17-
should_run_successfully "crystal run ../src/lucky.cr -- tasks"
17+
should_run_successfully "lucky tasks"
1818
end
1919
end
2020
end

spec/end_to_end/browser_no_auth_spec.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe "Lucky CLI", tags: "end_to_end" do
1414
should_run_successfully "crystal script/setup.cr"
1515
should_run_successfully "crystal build src/test_project.cr"
1616
should_run_successfully "crystal spec"
17-
# should_run_successfully "crystal run ../src/lucky.cr -- tasks"
17+
should_run_successfully "lucky tasks"
1818
end
1919
end
2020
end

spec/end_to_end/browser_with_auth_spec.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe "Lucky CLI", tags: "end_to_end" do
1414
should_run_successfully "crystal script/setup.cr"
1515
should_run_successfully "crystal build src/test_project.cr"
1616
should_run_successfully "crystal spec"
17-
# should_run_successfully "crystal run ../src/lucky.cr -- tasks"
17+
should_run_successfully "lucky tasks"
1818
end
1919
end
2020
end

spec/end_to_end/browser_with_security_spec.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe "Lucky CLI", tags: "end_to_end" do
1414
should_run_successfully "crystal script/setup.cr"
1515
should_run_successfully "crystal build src/test_project.cr"
1616
should_run_successfully "crystal spec"
17-
should_run_successfully "crystal run ../src/lucky.cr -- tasks"
17+
should_run_successfully "lucky tasks"
1818
end
1919
end
2020
end

spec/support/should_run_successfully.cr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
module ShouldRunSuccessfully
2-
private def should_run_successfully(command) : Nil
2+
private def should_run_successfully(command, output : IO = STDOUT) : Nil
33
result = Process.run(
44
command,
55
shell: true,
66
env: ENV.to_h,
7-
output: STDOUT,
7+
output: output,
88
error: STDERR
99
)
1010

0 commit comments

Comments
 (0)