Sha256: 64088b82b9893b1567040e7ef4918a8aac033fa4ebc0a591f6686c12254e27c9
Contents?: true
Size: 654 Bytes
Versions: 1
Compression:
Stored size: 654 Bytes
Contents
require File.expand_path("#{File.dirname(__FILE__)}/../unit_spec_helper") module Rack describe Response do describe "#ready?" do attr_reader :response describe "when there is a status" do before do @response = Response.new @response.status.should_not be_nil end it "returns true" do response.should be_ready end end describe "when there is no status" do before do @response = Response.new response.status = nil end it "returns true" do response.should_not be_ready end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
js_spec-0.2.0 | spec/unit/rack/response_spec.rb |