Sha256: 096c7ec9f18053481cf61416e7ef5a795429d5640bbc0e3edd18c1febd9dd1a6
Contents?: true
Size: 509 Bytes
Versions: 2
Compression:
Stored size: 509 Bytes
Contents
module Rubai describe Response, "Generates a generic response" do context "#new with default parameters" do its(:body) { should eq [] } its(:status) { should eq 200 } its(:content_type) { should eq "text/html" } end context "#<<" do let(:some_text) { "omg! response..." } subject(:response) { Response.new } it "appends string to response #body" do response << some_text expect(response.body).to include some_text end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubai-0.1.2 | spec/rubai/response_spec.rb |
rubai-0.1.1 | spec/rubai/response_spec.rb |