Sha256: ae0d85a94de91fbf5e17068d95df2eeca838d0c829497fce546a93ece9cf610f

Contents?: true

Size: 223 Bytes

Versions: 4

Compression:

Stored size: 223 Bytes

Contents

require 'spec_helper'

describe GraphQL::Field do
  it 'accepts a proc as type' do
    field = GraphQL::Field.new { |f|
      f.type(-> { DairyProductUnion })
    }
    assert_equal(DairyProductUnion, field.type)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
graphql-0.4.0 spec/graph_ql/field_spec.rb
graphql-0.3.0 spec/graph_ql/fields/field_spec.rb
graphql-0.2.0 spec/graph_ql/fields/field_spec.rb
graphql-0.1.0 spec/graph_ql/fields/field_spec.rb