Sha256: bf6fe0ff507eb9aae0ccb13672a3122ad0d9bc574d4ca6e9bfe83028d9c57b6f
Contents?: true
Size: 1.01 KB
Versions: 16
Compression:
Stored size: 1.01 KB
Contents
# 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' $:.push File.expand_path('../lib/submodules/ably-ruby/spec', File.dirname(__FILE__)) require 'support/api_helper' require 'support/private_api_formatter' require 'support/protocol_helper' require 'support/random_helper' # Load in all shared behaviours Dir.glob(File.expand_path("../lib/submodules/ably-ruby/spec/shared/*.rb", File.dirname(__FILE__))).each do |file| require file end require 'rspec_config' def require_tests_from(path, options = {}) ignore_files = options.fetch(:ignore_file_macher, nil) Dir.glob(File.expand_path("../lib/submodules/ably-ruby/spec/#{path}/*.rb", File.dirname(__FILE__))).each do |file| require file if ignore_files.nil? || !File.basename(file).match(ignore_files) end end
Version data entries
16 entries across 16 versions & 1 rubygems