Sha256: cae75d8701785bf0a66770a8f7d7f6f45e516a35026f99df0d3c891fbfde2b75
Contents?: true
Size: 340 Bytes
Versions: 6
Compression:
Stored size: 340 Bytes
Contents
# frozen_string_literal: true RSpec.describe HTTP::Options, "form" do let(:opts) { HTTP::Options.new } it "defaults to nil" do expect(opts.form).to be nil end it "may be specified with with_form_data" do opts2 = opts.with_form(:foo => 42) expect(opts.form).to be nil expect(opts2.form).to eq(:foo => 42) end end
Version data entries
6 entries across 6 versions & 1 rubygems