Sha256: e909d02cd7121676f38022adfb0b00fd128e1def853e768d4a1a4e81573e5b87
Contents?: true
Size: 329 Bytes
Versions: 6
Compression:
Stored size: 329 Bytes
Contents
require 'spec_helper' describe HTTP::Options, 'json' do let(:opts) { HTTP::Options.new } it 'defaults to nil' do expect(opts.json).to be nil end it 'may be specified with with_json data' do opts2 = opts.with_json(:foo => 42) expect(opts.json).to be nil expect(opts2.json).to eq(:foo => 42) end end
Version data entries
6 entries across 6 versions & 1 rubygems