Permalink
Browse files

Moved helper which is only used in one spec

  • Loading branch information...
1 parent 38eeaf4 commit 684a57618bdb4e075c0e51b96dc2c81b3fd7a921 @mloughran mloughran committed Dec 21, 2011
Showing with 5 additions and 5 deletions.
  1. +0 −5 spec/helper.rb
  2. +5 −0 spec/unit/handler_spec.rb
View
@@ -132,11 +132,6 @@ def format_response(r)
data
end
-def handler(request, secure = false)
- connection = Object.new
- EM::WebSocket::HandlerFactory.build(connection, format_request(request), secure)
-end
-
RSpec::Matchers.define :send_handshake do |response|
match do |actual|
actual.handshake.lines.sort == format_response(response).lines.sort
@@ -1,6 +1,11 @@
require 'helper'
describe "EventMachine::WebSocket::Handler" do
+ def handler(request, secure = false)
+ connection = Object.new
+ EM::WebSocket::HandlerFactory.build(connection, format_request(request), secure)
+ end
+
before :each do
@request = {
:port => 80,

0 comments on commit 684a576

Please sign in to comment.