spec/cfoundry/trace_helpers_spec.rb in cfoundry-2.3.5 vs spec/cfoundry/trace_helpers_spec.rb in cfoundry-2.3.6.rc1

- old
+ new

@@ -45,9 +45,21 @@ end it "returns nil if request is nil" do tracehelper_test_class.new.request_trace(nil).should == nil end + + context "with protected attributes" do + let(:header_trace) { "REQUEST_HEADERS:\n Authorization : [PRIVATE DATA HIDDEN]" } + let(:request) do + { + :method => "GET", + :url => "http://api.cloudfoundry.com/foo", + :headers => { 'Authorization' => "SECRET STUFF" } + } + end + include_examples "request_trace tests" + end end describe "#response_trace" do context "with a non-JSON response body" do \ No newline at end of file