Skip to content

Commit 9b1f51c

Browse files
committed
Fill in this spec with a bit more testing
1 parent 3234d43 commit 9b1f51c

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

spec/end_to_end/browser_no_auth_spec.cr

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,24 @@ describe "Lucky CLI", tags: "end_to_end" do
1010
should_run_successfully "crystal run src/lucky.cr -- init.custom test-project --no-auth"
1111

1212
FileUtils.cd "test-project" do
13+
should_run_successfully "crystal script/setup.cr"
14+
should_run_successfully "crystal build src/test_project.cr"
15+
should_run_successfully "lucky gen.action.api Api::Users::Show"
16+
should_run_successfully "lucky gen.action.browser Users::Show"
17+
should_run_successfully "lucky gen.migration CreateThings"
18+
should_run_successfully "lucky gen.model User"
19+
should_run_successfully "lucky gen.page Users::IndexPage"
20+
should_run_successfully "lucky gen.component Users::Header"
21+
should_run_successfully "lucky gen.resource.browser Comment title:String"
22+
should_run_successfully "lucky gen.task email.monthly_update"
23+
should_run_successfully "lucky gen.secret_key"
24+
should_run_successfully "crystal spec"
25+
1326
{% if !flag?(:windows) %}
1427
# Due to formatter on Windows checking different line endings, this will report changes to all crystal files
1528
# We only need to test this on 1 OS to ensure things are good
1629
should_run_successfully "crystal tool format --check spec src config"
1730
{% end %}
18-
should_run_successfully "crystal script/setup.cr"
19-
should_run_successfully "crystal build src/test_project.cr"
20-
should_run_successfully "crystal spec"
21-
should_run_successfully "lucky tasks"
2231
end
2332
end
2433
end

0 commit comments

Comments
 (0)