Skip to content

Commit 24c3afe

Browse files
committed
Fix CI
1 parent 4d03368 commit 24c3afe

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
BUNDLE_GEMFILE: gemfiles/rails-${{ matrix.rails }}.gemfile
6262

6363
- name: Test
64-
run: bundle exec rake spec
64+
run: bundle exec rake test
6565
env:
6666
BUNDLE_GEMFILE: gemfiles/rails-${{ matrix.rails }}.gemfile
6767

lib/action_dispatch/session/dynamo_db_store.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def delete_session(req, sid, options)
5151
@middleware.delete_session(req, sid, options)
5252
end
5353

54+
# rubocop:disable Metrics
5455
def config_file
5556
file = ENV.fetch('AWS_DYNAMO_DB_SESSION_CONFIG_FILE', nil)
5657
file ||= Rails.root.join("config/dynamo_db_session_store/#{Rails.env}.yml")
@@ -68,6 +69,7 @@ def config_file
6869
file if File.exist?(file)
6970
end
7071
end
72+
# rubocop:enable Metrics
7173

7274
# @api private
7375
class DynamodbStore < DynamoDbStore

test/action_dispatch/session/dynamo_db_store_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def teardown_env
3232

3333
store = ActionDispatch::Session::DynamoDbStore.new(nil, options)
3434
config_file_path = store.config.config_file.to_s
35-
assert_match(/aws_dynamo_db_session_store\/development.yml/, config_file_path)
35+
assert_match(%r{aws_dynamo_db_session_store/development.yml}, config_file_path)
3636

3737
# Reload old env
3838
Rails.env = old_env

0 commit comments

Comments
 (0)