spec/spec_helper.rb in ably-rest-0.7.0 vs spec/spec_helper.rb in ably-rest-0.7.1

- old
+ new

@@ -1,10 +1,9 @@ -# This file was generated by the `rspec --init` command. Conventionally, all -# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. -# Require this file using `require "spec_helper"` to ensure that it is only -# loaded once. -# -# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration +# 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-rest'