Sha256: 07ac5e5bd8dc247801606daa577da38e3d398dc1300359d1e9257cee44fb4f0d
Contents?: true
Size: 326 Bytes
Versions: 36
Compression:
Stored size: 326 Bytes
Contents
# frozen_string_literal: true RSpec.describe HTTP::Options, "body" do let(:opts) { HTTP::Options.new } it "defaults to nil" do expect(opts.body).to be nil end it "may be specified with with_body" do opts2 = opts.with_body("foo") expect(opts.body).to be nil expect(opts2.body).to eq("foo") end end
Version data entries
36 entries across 36 versions & 3 rubygems