Sha256: 5e4dfa7f1680a0b40a79824eb75a8885d06c8f1f38cba6b00334c8877a01e149

Contents?: true

Size: 302 Bytes

Versions: 3

Compression:

Stored size: 302 Bytes

Contents

require 'spec_helper'

describe Http::Options, "body" do

  let(:opts){ Http::Options.new }

  it 'defaults to nil' do
    opts.body.should be_nil
  end

  it 'may be specified with with_body' do
    opts2 = opts.with_body("foo")
    opts.body.should be_nil
    opts2.body.should eq("foo")
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
http-0.5.0.pre spec/http/options/body_spec.rb
http-0.4.0 spec/http/options/body_spec.rb
http-0.3.0 spec/http/options/body_spec.rb