Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standardize name of test database to river_test #17

Merged
merged 1 commit into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions drivers/riverqueue-activerecord/docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -45,4 +45,4 @@ gem build riverqueue-sequel.gemspec
gem push riverqueue-sequel-$VERSION.gem
git tag $VERSION
git push --tags
```
```
2 changes: 1 addition & 1 deletion drivers/riverqueue-activerecord/spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions drivers/riverqueue-sequel/docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -45,4 +45,4 @@ gem build riverqueue-sequel.gemspec
gem push riverqueue-sequel-$VERSION.gem
git tag $VERSION
git push --tags
```
```
2 changes: 1 addition & 1 deletion drivers/riverqueue-sequel/spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading