Skip to content

Commit

Permalink
Update to latest version of rspec-rails
Browse files Browse the repository at this point in the history
  • Loading branch information
codez committed Dec 6, 2023
1 parent 97e647a commit 8527a50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ namespace :test do
"require 'simplecov'\nSimpleCov.start do\n" +
" coverage_dir 'coverage/spec'\nend\n")
file_replace(File.join(TEST_APP_ROOT, 'spec', 'rails_helper.rb'),
"# Dir[Rails.root.join('spec', 'support', '**', '*.rb')].sort.each { |f| require f }",
"Dir[Rails.root.join('spec', 'support', '**', '*.rb')].sort.each { |f| require f }")
"# Rails.root.glob('spec/support/**/*.rb').sort.each { |f| require f }",
"Rails.root.glob('spec/support/**/*.rb').sort.each { |f| require f }")
end
end

Expand Down
2 changes: 1 addition & 1 deletion app/helpers/format_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def assoc_link(assoc, val)
# Returns true if no link should be created when formatting the given
# association.
def assoc_link?(_assoc, val)
respond_to?("#{val.class.model_name.singular_route_key}_path".to_sym)
respond_to?(:"#{val.class.model_name.singular_route_key}_path")
end

end

0 comments on commit 8527a50

Please sign in to comment.