File tree Expand file tree Collapse file tree
lib/generators/graphql/templates
spec/integration/rails/generators/graphql Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<% module_namespacing_when_supported do -%>
22module Types
33 class <%= type_ruby_name.split('::')[-1] %> < Types::BaseUnion
4- <% if possible_types . any? %> possible_types [ <%= normalized_possible_types . join ( ", " ) %> ]
4+ <% if possible_types . any? %> possible_types <%= normalized_possible_types . join ( ", " ) %>
55<% end %> end
66end
77<% end -%>
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class GraphQLGeneratorsUnionGeneratorTest < BaseGeneratorTest
1616 expected_content = <<-RUBY
1717module Types
1818 class WingedCreatureType < Types::BaseUnion
19- possible_types [ Types::InsectType, Types::BirdType]
19+ possible_types Types::InsectType, Types::BirdType
2020 end
2121end
2222RUBY
You can’t perform that action at this time.
0 commit comments