spec/spec_helper.rb in reel-0.2.0.pre vs spec/spec_helper.rb in reel-0.2.0
- old
+ new
@@ -4,10 +4,11 @@
logfile = File.open(File.expand_path("../../log/test.log", __FILE__), 'a')
Celluloid.logger = Logger.new(logfile)
def example_addr; '127.0.0.1'; end
def example_port; 1234; end
-def example_url; "/example"; end
+def example_path; "/example"; end
+def example_url; "http://#{example_addr}:#{example_port}#{example_path}"; end
def with_reel(handler)
server = Reel::Server.new(example_addr, example_port, &handler)
yield server
ensure