Skip to content

Commit e6c80e6

Browse files
committed
Update PG setup
1 parent 00896bc commit e6c80e6

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/workflows/ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
COVERAGE: "${{matrix.coverage}}"
2222
COVERAGE_TOKEN: "${{secrets.CODACY_PROJECT_TOKEN}}"
2323
APT_DEPS: libpq-dev libmysqlclient-dev libsqlite3-dev
24-
DATABASE_URL: "postgres://runner:@localhost:5432/rom_factory"
24+
DATABASE_URL: "postgres://rom-factory:rom-factory@localhost:5432/rom_factory"
2525
steps:
2626
- name: Checkout
2727
uses: actions/checkout@v1
@@ -49,8 +49,8 @@ jobs:
4949
db:
5050
image: postgres:16.1
5151
env:
52-
POSTGRES_USER: runner
53-
POSTGRES_PASSWORD: ''
52+
POSTGRES_USER: rom-factory
53+
POSTGRES_PASSWORD: rom-factory
5454
POSTGRES_DB: rom_factory
5555
ports:
5656
- 5432:5432

spec/spec_helper.rb

+1-3
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@
3333
end
3434
end
3535

36-
warning_api_available = RUBY_VERSION >= "2.4.0"
37-
3836
module SileneceWarnings
3937
def warn(str)
4038
if str["/sequel/"] || str["/rspec-core"]
@@ -63,7 +61,7 @@ def callable(name, *args, &block)
6361
end
6462
end
6563

66-
Warning.extend(SileneceWarnings) if warning_api_available
64+
Warning.extend(SileneceWarnings)
6765

6866
RSpec.configure do |config|
6967
config.disable_monkey_patching!

0 commit comments

Comments
 (0)