Skip to content

Commit

Permalink
Fix specs, as we can have array in :identifier
Browse files Browse the repository at this point in the history
to put each identifier from the array to
the result(returned in api_feature_identifiers)
  • Loading branch information
lpichler committed Jan 29, 2018
1 parent a2a4e1c commit 4202930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/lib/api/api_config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

let(:api_feature_identifiers) do
collection_settings.each_with_object(Set.new) do |(_, cfg), set|
set.add(cfg[:identifier]) if cfg[:identifier]
Array(cfg[:identifier]).each { |id| set.add(id) }
keys = [:collection_actions, :resource_actions, :subcollection_actions, :subresource_actions]
Array(cfg[:subcollections]).each do |s|
keys << "#{s}_subcollection_actions" << "#{s}_subresource_actions"
Expand Down

0 comments on commit 4202930

Please sign in to comment.