Skip to content

Commit 3fdf537

Browse files
committed
Fix start_with deprecation
1 parent 2780336 commit 3fdf537

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

spec/dummy/config/environments/test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
config.eager_load = false
1414

1515
# Configure static file server for tests with Cache-Control for performance.
16-
if Rails.version.start_with?("5")
16+
if Rails.version.start_with?("4")
1717
config.public_file_server.enabled = true
1818
config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' }
1919
else

spec/dummy/config/initializers/assets.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Be sure to restart your server when you modify this file.
22

33
# Version of your assets, change this if you want to expire all your assets.
4-
if Rails.version.starts_with?("4")
4+
if Rails.version.start_with?("4")
55
Rails.application.config.assets.version = '1.0'
66
end
77

spec/lib/chatops/controller_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def ensure_app_given
6060
end
6161

6262
def rails_flexible_post(path, outer_params, jsonrpc_params = nil)
63-
if Rails.version.starts_with?("4")
63+
if Rails.version.start_with?("4")
6464
post path, outer_params.merge("params" => jsonrpc_params)
6565
else
6666
jsonrpc_params ||= {}

0 commit comments

Comments
 (0)