Sha256: 0472fc669209500f8a4c688b8479cd516abc973927ac5b87c428c58f34c12755
Contents?: true
Size: 339 Bytes
Versions: 3
Compression:
Stored size: 339 Bytes
Contents
require 'spec_helper' require 'json-rpc-objects/request' describe JsonRpcObjects::Request do describe "#parse" do let(:json) { '{"jsonrpc":"2.0","method":"sum","params":[1,2],"id":"cbf5d56b"}' } subject(:request) { described_class.parse(json) } its(:method) { should == :sum } its(:params) { should == [1,2] } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
json-rpc-objects-0.4.6 | spec/request_spec.rb |
json-rpc-objects-0.4.5 | spec/request_spec.rb |
json-rpc-objects-0.4.4 | spec/request_spec.rb |