Sha256: 0f01bd72ead130e619544434e248d1e9324589439ec6e14404ebd2d049bb713d
Contents?: true
Size: 310 Bytes
Versions: 45
Compression:
Stored size: 310 Bytes
Contents
RSpec.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
45 entries across 45 versions & 1 rubygems