spec/graphql/language/parser_spec.rb in graphql-1.8.0.pre1 vs spec/graphql/language/parser_spec.rb in graphql-1.8.0.pre2
- old
+ new
@@ -14,10 +14,10 @@
let(:fragment) { document.definitions.first }
it "creates an anonymous fragment definition" do
assert fragment.is_a?(GraphQL::Language::Nodes::FragmentDefinition)
- assert_equal nil, fragment.name
+ assert_nil fragment.name
assert_equal 1, fragment.selections.length
assert_equal "NestedType", fragment.type.name
assert_equal 1, fragment.directives.length
assert_equal [2, 7], fragment.position
end