Sha256: 2f459a5b18d44d979ba5300e6aaf669a41b45e13ac1a12cf6b2053070351c313

Contents?: true

Size: 1.15 KB

Versions: 10

Compression:

Stored size: 1.15 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'
require 'support/test_logger_helper'
require 'support/serialization_helper'

RSpec.configure do |config|
  config.include SerializationHelper
end

# 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

10 entries across 10 versions & 1 rubygems

Version Path
ably-rest-1.2.7 spec/spec_helper.rb
ably-rest-1.2.6 spec/spec_helper.rb
ably-rest-1.2.4 spec/spec_helper.rb
ably-rest-1.2.3 spec/spec_helper.rb
ably-rest-1.2.2 spec/spec_helper.rb
ably-rest-1.2.1 spec/spec_helper.rb
ably-rest-1.2.0 spec/spec_helper.rb
ably-rest-1.1.8 spec/spec_helper.rb
ably-rest-1.1.7 spec/spec_helper.rb
ably-rest-1.1.6 spec/spec_helper.rb