Sha256: a5c966e0d5a0021baf36306ae3988a99d593a932a33fb57f49bba61144609e39
Contents?: true
Size: 325 Bytes
Versions: 6
Compression:
Stored size: 325 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
6 entries across 6 versions & 1 rubygems