spec/spec_helper.rb in ably-0.6.2 vs spec/spec_helper.rb in ably-0.7.0
- old
+ new
@@ -1,8 +1,17 @@
+# Output the message to the console
+# Useful for debugging as clearly visible, and name is not used anywhere else in library as opposed to debug or puts
+def console(message)
+ puts "\033[31m[#{Time.now.strftime('%H:%M:%S.%L')}]\033[0m \033[33m#{message}\033[0m"
+end
+
require 'webmock/rspec'
require 'ably'
require 'support/api_helper'
require 'support/event_machine_helper'
+require 'support/private_api_formatter'
+require 'support/protocol_helper'
+require 'support/random_helper'
require 'rspec_config'