Skip to content

Commit 8527a50

Browse files
committed
Update to latest version of rspec-rails
1 parent 97e647a commit 8527a50

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ namespace :test do
6969
"require 'simplecov'\nSimpleCov.start do\n" +
7070
" coverage_dir 'coverage/spec'\nend\n")
7171
file_replace(File.join(TEST_APP_ROOT, 'spec', 'rails_helper.rb'),
72-
"# Dir[Rails.root.join('spec', 'support', '**', '*.rb')].sort.each { |f| require f }",
73-
"Dir[Rails.root.join('spec', 'support', '**', '*.rb')].sort.each { |f| require f }")
72+
"# Rails.root.glob('spec/support/**/*.rb').sort.each { |f| require f }",
73+
"Rails.root.glob('spec/support/**/*.rb').sort.each { |f| require f }")
7474
end
7575
end
7676

app/helpers/format_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def assoc_link(assoc, val)
159159
# Returns true if no link should be created when formatting the given
160160
# association.
161161
def assoc_link?(_assoc, val)
162-
respond_to?("#{val.class.model_name.singular_route_key}_path".to_sym)
162+
respond_to?(:"#{val.class.model_name.singular_route_key}_path")
163163
end
164164

165165
end

0 commit comments

Comments
 (0)