spec/generators/graphql/object_generator_spec.rb in graphql-1.5.10 vs spec/generators/graphql/object_generator_spec.rb in graphql-1.5.11

- old
+ new

@@ -28,9 +28,18 @@ run_generator(c) assert_file "app/graphql/types/bird_type.rb", expected_content end end + test "it generates classifed file" do + run_generator(["page"]) + assert_file "app/graphql/types/page_type.rb", <<-RUBY +Types::PageType = GraphQL::ObjectType.define do + name "Page" +end +RUBY + end + test "it makes Relay nodes" do run_generator(["Page", "--node"]) assert_file "app/graphql/types/page_type.rb", <<-RUBY Types::PageType = GraphQL::ObjectType.define do name "Page"