Sha256: 160920a14b72ffe5c3f3ce38e6d181e5c3944b1d72eb698cf0af8ab7f15690ae
Contents?: true
Size: 468 Bytes
Versions: 1
Compression:
Stored size: 468 Bytes
Contents
# frozen_string_literal: true require "spec_helper" describe GraphQL::STRING_TYPE do describe "coerce_input" do it "accepts strings" do assert_equal "str", GraphQL::STRING_TYPE.coerce_input("str") end it "doesn't accept other types" do assert_equal nil, GraphQL::STRING_TYPE.coerce_input(100) assert_equal nil, GraphQL::STRING_TYPE.coerce_input(true) assert_equal nil, GraphQL::STRING_TYPE.coerce_input(0.999) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
graphql-1.3.0 | spec/graphql/string_type_spec.rb |