Sha256: 1b88d97068e0594cc819aac7ae1af952bdca6f87154ceeeb9efb21eaa12bfa62

Contents?: true

Size: 868 Bytes

Versions: 2

Compression:

Stored size: 868 Bytes

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'

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

2 entries across 2 versions & 1 rubygems

Version Path
ably-rest-0.7.3 spec/spec_helper.rb
ably-rest-0.7.1 spec/spec_helper.rb