Sha256: 2a57338b307b578485b6cc7fd60d77f67329f9e65c926462141caa2ec04a7a45
Contents?: true
Size: 490 Bytes
Versions: 3
Compression:
Stored size: 490 Bytes
Contents
require "spec_helper" describe GraphQL::Query::Arguments do let(:arguments) { GraphQL::Query::Arguments.new({ a: 1, b: 2 }) } it 'returns keys as strings' do assert_equal(['a', 'b'], arguments.keys) end it 'delegates values to values hash' do assert_equal([1, 2], arguments.values) end it 'delegates each to values hash' do pairs = [] arguments.each do |key, value| pairs << [key, value] end assert_equal([['a', 1], ['b', 2]], pairs) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
graphql-0.10.3 | spec/graphql/query/arguments_spec.rb |
graphql-0.10.2 | spec/graphql/query/arguments_spec.rb |
graphql-0.10.1 | spec/graphql/query/arguments_spec.rb |