File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed
Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff 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
2020Run all specs:
Original file line number Diff line number Diff 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
1818Run all specs:
@@ -45,4 +45,4 @@ gem build riverqueue-sequel.gemspec
4545gem push riverqueue-sequel-$VERSION .gem
4646git tag $VERSION
4747git push --tags
48- ```
48+ ```
Original file line number Diff line number Diff line change 11require "active_record"
22require "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
66def test_transaction
77 ActiveRecord ::Base . transaction do
Original file line number Diff line number Diff 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
1818Run all specs:
@@ -45,4 +45,4 @@ gem build riverqueue-sequel.gemspec
4545gem push riverqueue-sequel-$VERSION .gem
4646git tag $VERSION
4747git push --tags
48- ```
48+ ```
Original file line number Diff line number Diff line change 11require "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
55def test_transaction
66 DB . transaction do
You can’t perform that action at this time.
0 commit comments