Skip to content

Commit

Permalink
Update test apps
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Jan 21, 2025
1 parent e933c21 commit 9848194
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
4 changes: 2 additions & 2 deletions hatchet.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
"sharpstone/minimal_webpacker"
],
"ci": [
"sharpstone/rails5_ruby_schema_format",
"sharpstone/rails_8_ruby_schema",
"sharpstone/heroku-ci-json-example",
"sharpstone/rails5_sql_schema_format",
"sharpstone/rails_8_sql_schema",
"sharpstone/ruby_no_rails_test",
"sharpstone/activerecord_rake_tasks_does_not_exist"
]
Expand Down
8 changes: 4 additions & 4 deletions hatchet.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
- a6b711be6921cf7a0aa4e31269c37965799ea110
- - "./repos/ci/heroku-ci-json-example"
- 4e5410a7381f486ba3df7739e02e52f32fdd4dda
- - "./repos/ci/rails5_ruby_schema_format"
- 8b8a3a7850bdba29bdefc70c0f80f35a9e6c96ae
- - "./repos/ci/rails5_sql_schema_format"
- ee81b300a1019b47bbcaec0a512932df7dc23bc0
- - "./repos/ci/rails_8_ruby_schema"
- 32a4dce6c43834752dd9f263c41290a4ff168795
- - "./repos/ci/rails_8_sql_schema"
- e00d7b7b9cf95fb0a3aceb3c945025e5d20dec90
- - "./repos/ci/ruby_no_rails_test"
- 3916137106d59b008b67d738abe6a1438f8fbde6
- - "./repos/heroku/ruby-getting-started"
Expand Down
10 changes: 2 additions & 8 deletions spec/hatchet/ci_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,15 @@
end

it "Works with Rails 5 ruby schema apps" do
Hatchet::Runner.new("rails5_ruby_schema_format", stack: "heroku-20").tap do |app|
app.before_deploy do
Pathname("Gemfile").write("ruby '2.7.5'", mode: "a")
end
Hatchet::Runner.new("rails_8_ruby_schema", stack: "heroku-24").tap do |app|
app.run_ci do |test_run|
expect(test_run.output).to match("db:schema:load_if_ruby completed")
end
end
end

it "Works with Rails 5 SQL schema apps" do
Hatchet::Runner.new("rails5_sql_schema_format", stack: "heroku-20").tap do |app|
app.before_deploy do
Pathname("Gemfile").write("ruby '2.7.5'", mode: "a")
end
Hatchet::Runner.new("rails_8_sql_schema", stack: "heroku-24").tap do |app|
app.run_ci do |test_run|
expect(test_run.output).to match("db:structure:load_if_sql completed")
end
Expand Down

0 comments on commit 9848194

Please sign in to comment.