Skip to content

Commit bc111ec

Browse files
committed
Fix tests for new Ruby version
Something changed since the Ruby version we're now testing with, so update the specs to match.
1 parent 41d519a commit bc111ec

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

spec/integrations/devise_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ def prepare_request_params(params)
1515
end
1616

1717
def create_user
18-
post "/users", prepare_request_params(
18+
post "/users", **prepare_request_params(
1919
"user[email]" => "person@example.com",
2020
"user[password]" => "secret",
2121
"user[password_confirmation]" => "secret"
2222
)
2323
end
2424

2525
def sign_in
26-
post "/users/sign_in", prepare_request_params(
26+
post "/users/sign_in", **prepare_request_params(
2727
"user[email]" => "person@example.com",
2828
"user[password]" => "secret",
2929
"user[password_confirmation]" => "secret"

spec/support/apps/rails_6.0_app/config/database.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,22 @@ default: &default
1010
timeout: 5000
1111

1212
development:
13-
<<: *default
13+
adapter: sqlite3
14+
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
15+
timeout: 5000
1416
database: db/development.sqlite3
1517

1618
# Warning: The database defined as "test" will be erased and
1719
# re-generated from your development database when you run "rake".
1820
# Do not set this db to the same as development or production.
1921
test:
20-
<<: *default
22+
adapter: sqlite3
23+
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
24+
timeout: 5000
2125
database: db/test.sqlite3
2226

2327
production:
24-
<<: *default
28+
adapter: sqlite3
29+
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
30+
timeout: 5000
2531
database: db/production.sqlite3

0 commit comments

Comments
 (0)