Sha256: 012bd2e668dc0d06040b11adbc9b60049f0126d60198474ba34c709e550f303e

Contents?: true

Size: 529 Bytes

Versions: 28

Compression:

Stored size: 529 Bytes

Contents

# frozen_string_literal: true
require "spec_helper"

describe GraphQL::Language::Nodes::AbstractNode do
  describe "child and scalar attributes" do
    it "are inherited by node subclasses" do
      subclassed_directive = Class.new(GraphQL::Language::Nodes::Directive)

      assert_equal GraphQL::Language::Nodes::Directive.scalar_attributes,
        subclassed_directive.scalar_attributes

      assert_equal GraphQL::Language::Nodes::Directive.child_attributes,
        subclassed_directive.child_attributes
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
graphql-1.6.6 spec/graphql/language/nodes_spec.rb
graphql-1.6.5 spec/graphql/language/nodes_spec.rb
graphql-1.6.4 spec/graphql/language/nodes_spec.rb
graphql-1.5.15 spec/graphql/language/nodes_spec.rb
graphql-1.6.3 spec/graphql/language/nodes_spec.rb
graphql-1.6.2 spec/graphql/language/nodes_spec.rb
graphql-1.6.1 spec/graphql/language/nodes_spec.rb
graphql-1.6.0 spec/graphql/language/nodes_spec.rb
graphql-1.5.14 spec/graphql/language/nodes_spec.rb
graphql-1.5.13 spec/graphql/language/nodes_spec.rb
graphql-1.5.7.1 spec/graphql/language/nodes_spec.rb
graphql-1.5.12 spec/graphql/language/nodes_spec.rb
graphql-1.5.11 spec/graphql/language/nodes_spec.rb
graphql-1.5.10 spec/graphql/language/nodes_spec.rb
graphql-1.5.9 spec/graphql/language/nodes_spec.rb
graphql-1.5.8 spec/graphql/language/nodes_spec.rb
graphql-1.5.7 spec/graphql/language/nodes_spec.rb
graphql-1.5.6 spec/graphql/language/nodes_spec.rb
graphql-1.5.5 spec/graphql/language/nodes_spec.rb
graphql-1.5.4 spec/graphql/language/nodes_spec.rb