Skip to content

Commit

Permalink
Merge pull request #1275 from jrafanie/support-upgrade-config-2-to-5
Browse files Browse the repository at this point in the history
Treat result of to_h to be hashes recursively (support config gem 3+)
  • Loading branch information
Fryguy authored Nov 26, 2024
2 parents cb23be0 + c64b6d9 commit fff0961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/requests/authentication_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@

get api_entrypoint_url

collection_names = Api::ApiConfig.collections.to_h.select { |_, v| v.options.include?(:collection) }.keys
collection_names = Api::ApiConfig.collections.to_h.select { |_, v| v[:options].include?(:collection) }.keys
hrefs = collection_names.collect { |name| url_for(:controller => name, :action => "index") }
expected = {
"collections" => a_collection_containing_exactly(
Expand Down

0 comments on commit fff0961

Please sign in to comment.