spec/unit/connection_spec.rb in goliath-0.9.4 vs spec/unit/connection_spec.rb in goliath-1.0.0.beta.1

- old
+ new

@@ -41,10 +41,13 @@ describe 'receive_data' do it 'passes data to the http parser' do request_mock = mock("parser").as_null_object request_mock.should_receive(:<<) + current_mock = mock("current").as_null_object + @c.instance_variable_set("@parser", request_mock) + @c.instance_variable_set("@current", current_mock) @c.receive_data('more_data') end it "closes the connection when a parse error is received" do current_mock = mock("current").as_null_object