Sha256: a8db78ee25a47241a60085803ca69b819d2df97b535f9ce9654c9a8d69c6b8a0

Contents?: true

Size: 310 Bytes

Versions: 45

Compression:

Stored size: 310 Bytes

Contents

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

45 entries across 45 versions & 1 rubygems

Version Path
http-2.0.1 spec/lib/http/options/form_spec.rb
http-2.0.0 spec/lib/http/options/form_spec.rb
http-2.0.0.pre spec/lib/http/options/form_spec.rb
http-1.0.4 spec/lib/http/options/form_spec.rb
http-0.9.9 spec/lib/http/options/form_spec.rb
http-1.0.3 spec/lib/http/options/form_spec.rb
http-1.0.2 spec/lib/http/options/form_spec.rb
http-1.0.1 spec/lib/http/options/form_spec.rb
http-1.0.0 spec/lib/http/options/form_spec.rb
http-1.0.0.pre6 spec/lib/http/options/form_spec.rb
http-1.0.0.pre5 spec/lib/http/options/form_spec.rb
http-1.0.0.pre4 spec/lib/http/options/form_spec.rb
http-1.0.0.pre3 spec/lib/http/options/form_spec.rb
http-1.0.0.pre2 spec/lib/http/options/form_spec.rb
http-1.0.0.pre1 spec/lib/http/options/form_spec.rb
http-0.9.8 spec/lib/http/options/form_spec.rb
http-0.9.7 spec/lib/http/options/form_spec.rb
http-0.9.6 spec/lib/http/options/form_spec.rb
http-0.9.5 spec/lib/http/options/form_spec.rb
http-0.9.4 spec/lib/http/options/form_spec.rb