From 0e55a91b10c9a10bdd613068b8391aebc212ee13 Mon Sep 17 00:00:00 2001 From: Brandur Date: Sun, 30 Jun 2024 12:23:40 -0700 Subject: [PATCH] Standardize name of test database to `river_test` We have a whole bunch of ideas of what the name of the River test database should be across like all our different projects. I'm going to try and standardize on `river_test` everywhere, and `river_dev` for the development database. --- docs/development.md | 4 ++-- drivers/riverqueue-activerecord/docs/development.md | 6 +++--- drivers/riverqueue-activerecord/spec/spec_helper.rb | 2 +- drivers/riverqueue-sequel/docs/development.md | 6 +++--- drivers/riverqueue-sequel/spec/spec_helper.rb | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/development.md b/docs/development.md index 0d891cc..57c2ed0 100644 --- a/docs/development.md +++ b/docs/development.md @@ -13,8 +13,8 @@ Create a test database and migrate with River's CLI: ```shell $ go install github.com/riverqueue/river/cmd/river -$ createdb riverqueue_ruby_test -$ river migrate-up --database-url "postgres://localhost/riverqueue_ruby_test" +$ createdb river_test +$ river migrate-up --database-url "postgres://localhost/river_test" ``` Run all specs: diff --git a/drivers/riverqueue-activerecord/docs/development.md b/drivers/riverqueue-activerecord/docs/development.md index 2f85549..1f6e744 100644 --- a/drivers/riverqueue-activerecord/docs/development.md +++ b/drivers/riverqueue-activerecord/docs/development.md @@ -11,8 +11,8 @@ Create a test database and migrate with River's CLI: ```shell $ go install github.com/riverqueue/river/cmd/river -$ createdb riverqueue_ruby_test -$ river migrate-up --database-url "postgres://localhost/riverqueue_ruby_test" +$ createdb river_test +$ river migrate-up --database-url "postgres://localhost/river_test" ``` Run all specs: @@ -45,4 +45,4 @@ gem build riverqueue-sequel.gemspec gem push riverqueue-sequel-$VERSION.gem git tag $VERSION git push --tags -``` \ No newline at end of file +``` diff --git a/drivers/riverqueue-activerecord/spec/spec_helper.rb b/drivers/riverqueue-activerecord/spec/spec_helper.rb index a81f76f..a9892cb 100644 --- a/drivers/riverqueue-activerecord/spec/spec_helper.rb +++ b/drivers/riverqueue-activerecord/spec/spec_helper.rb @@ -1,7 +1,7 @@ require "active_record" require "debug" -ActiveRecord::Base.establish_connection(ENV["TEST_DATABASE_URL"] || "postgres://localhost/riverqueue_ruby_test") +ActiveRecord::Base.establish_connection(ENV["TEST_DATABASE_URL"] || "postgres://localhost/river_test") def test_transaction ActiveRecord::Base.transaction do diff --git a/drivers/riverqueue-sequel/docs/development.md b/drivers/riverqueue-sequel/docs/development.md index 2f85549..1f6e744 100644 --- a/drivers/riverqueue-sequel/docs/development.md +++ b/drivers/riverqueue-sequel/docs/development.md @@ -11,8 +11,8 @@ Create a test database and migrate with River's CLI: ```shell $ go install github.com/riverqueue/river/cmd/river -$ createdb riverqueue_ruby_test -$ river migrate-up --database-url "postgres://localhost/riverqueue_ruby_test" +$ createdb river_test +$ river migrate-up --database-url "postgres://localhost/river_test" ``` Run all specs: @@ -45,4 +45,4 @@ gem build riverqueue-sequel.gemspec gem push riverqueue-sequel-$VERSION.gem git tag $VERSION git push --tags -``` \ No newline at end of file +``` diff --git a/drivers/riverqueue-sequel/spec/spec_helper.rb b/drivers/riverqueue-sequel/spec/spec_helper.rb index 4a1d589..253997f 100644 --- a/drivers/riverqueue-sequel/spec/spec_helper.rb +++ b/drivers/riverqueue-sequel/spec/spec_helper.rb @@ -1,6 +1,6 @@ require "sequel" -DB = Sequel.connect(ENV["TEST_DATABASE_URL"] || "postgres://localhost/riverqueue_ruby_test") +DB = Sequel.connect(ENV["TEST_DATABASE_URL"] || "postgres://localhost/river_test") def test_transaction DB.transaction do