spec/rack/accept_default_spec.rb in rack-accept-default-0.0.1 vs spec/rack/accept_default_spec.rb in rack-accept-default-0.0.2

- old
+ new

@@ -12,9 +12,15 @@ get '/' last_response.should be_ok last_response.body.should == '*/*' end + it "should override given nil Accept header" do + get "/", {}, { "HTTP_ACCEPT" => nil } + last_response.should be_ok + last_response.body.should == "*/*" + end + it "should not override given Accept header" do get '/', {}, { 'HTTP_ACCEPT' => "application/json" } last_response.should be_ok last_response.body.should == 'application/json' end