Skip to content

Commit

Permalink
errors in tests detected by jruby
Browse files Browse the repository at this point in the history
  • Loading branch information
archiloque committed Apr 23, 2010
1 parent b956e9d commit 59774b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions spec/abstract_response_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ def initialize net_http_res, args
@args = args
end


end

before do
Expand All @@ -27,7 +26,7 @@ def initialize net_http_res, args
end

it "has a nice description" do
@net_http_res.should_receive(:to_hash).and_return({'Content-Type' => 'application/pdf'})
@net_http_res.should_receive(:to_hash).and_return({'Content-Type' => ['application/pdf']})
@net_http_res.should_receive(:code).and_return('200')
@response.description == '200 OK | application/pdf bytes\n'
end
Expand Down
2 changes: 1 addition & 1 deletion spec/request_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,6 @@
@http.should_receive(:request).and_return(@request.fetch_body(net_http_res))
response = @request.transmit(@uri, 'req', 'payload')
response.should_not be_nil
response.code.should equal(204)
response.code.should == 204
end
end

0 comments on commit 59774b2

Please sign in to comment.