Skip to content

Commit 7573abc

Browse files
authored
Switch to using yml for generated yaml files (#1246)
See: #1243
1 parent 4c41280 commit 7573abc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/generators/suspenders/ci_generator.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class CiGenerator < Rails::Generators::Base
1414

1515
def ci_files
1616
empty_directory ".github/workflows"
17-
template "ci.yml", ".github/workflows/ci.yaml"
17+
template "ci.yml", ".github/workflows/ci.yml"
1818
template "dependabot.yml", ".github/dependabot.yaml"
1919
end
2020

test/generators/suspenders/ci_generator_test.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class CiGeneratorTest < Rails::Generators::TestCase
1414
with_database "postgresql" do
1515
run_generator
1616

17-
assert_file app_root(".github/workflows/ci.yaml")
17+
assert_file app_root(".github/workflows/ci.yml")
1818
assert_file app_root(".github/dependabot.yaml")
1919
end
2020
end
@@ -24,7 +24,7 @@ class CiGeneratorTest < Rails::Generators::TestCase
2424
assert_raises Suspenders::Generators::DatabaseUnsupported::Error, match: "This generator requires PostgreSQL" do
2525
run_generator
2626

27-
assert_no_file app_root(".github/workflows/ci.yaml")
27+
assert_no_file app_root(".github/workflows/ci.yml")
2828
assert_no_file app_root(".github/dependabot.yaml")
2929
end
3030
end

0 commit comments

Comments
 (0)