Skip to content

Commit 91f966a

Browse files
authored
Standardize name of test database to river_test (#17)
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.
1 parent 38d06d0 commit 91f966a

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

docs/development.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Create a test database and migrate with River's CLI:
1313

1414
```shell
1515
$ go install github.com/riverqueue/river/cmd/river
16-
$ createdb riverqueue_ruby_test
17-
$ river migrate-up --database-url "postgres://localhost/riverqueue_ruby_test"
16+
$ createdb river_test
17+
$ river migrate-up --database-url "postgres://localhost/river_test"
1818
```
1919

2020
Run all specs:

drivers/riverqueue-activerecord/docs/development.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Create a test database and migrate with River's CLI:
1111

1212
```shell
1313
$ go install github.com/riverqueue/river/cmd/river
14-
$ createdb riverqueue_ruby_test
15-
$ river migrate-up --database-url "postgres://localhost/riverqueue_ruby_test"
14+
$ createdb river_test
15+
$ river migrate-up --database-url "postgres://localhost/river_test"
1616
```
1717

1818
Run all specs:
@@ -45,4 +45,4 @@ gem build riverqueue-sequel.gemspec
4545
gem push riverqueue-sequel-$VERSION.gem
4646
git tag $VERSION
4747
git push --tags
48-
```
48+
```

drivers/riverqueue-activerecord/spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require "active_record"
22
require "debug"
33

4-
ActiveRecord::Base.establish_connection(ENV["TEST_DATABASE_URL"] || "postgres://localhost/riverqueue_ruby_test")
4+
ActiveRecord::Base.establish_connection(ENV["TEST_DATABASE_URL"] || "postgres://localhost/river_test")
55

66
def test_transaction
77
ActiveRecord::Base.transaction do

drivers/riverqueue-sequel/docs/development.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Create a test database and migrate with River's CLI:
1111

1212
```shell
1313
$ go install github.com/riverqueue/river/cmd/river
14-
$ createdb riverqueue_ruby_test
15-
$ river migrate-up --database-url "postgres://localhost/riverqueue_ruby_test"
14+
$ createdb river_test
15+
$ river migrate-up --database-url "postgres://localhost/river_test"
1616
```
1717

1818
Run all specs:
@@ -45,4 +45,4 @@ gem build riverqueue-sequel.gemspec
4545
gem push riverqueue-sequel-$VERSION.gem
4646
git tag $VERSION
4747
git push --tags
48-
```
48+
```

drivers/riverqueue-sequel/spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require "sequel"
22

3-
DB = Sequel.connect(ENV["TEST_DATABASE_URL"] || "postgres://localhost/riverqueue_ruby_test")
3+
DB = Sequel.connect(ENV["TEST_DATABASE_URL"] || "postgres://localhost/river_test")
44

55
def test_transaction
66
DB.transaction do

0 commit comments

Comments
 (0)