Sha256: c52edfd93b43c29dcecb45d14e802759ffe0c053ddfbd8074ec54e62af4950d5

Contents?: true

Size: 1.12 KB

Versions: 18

Compression:

Stored size: 1.12 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

unless RUBY_VERSION.match(/^1\./)
  require 'simplecov'

  SimpleCov.start do
    require 'simplecov-lcov'
    SimpleCov::Formatter::LcovFormatter.config do |c|
      c.report_with_single_file = true
      c.single_report_path = 'coverage/lcov.info'
    end
    formatter SimpleCov::Formatter::LcovFormatter
    add_filter %w[vendor spec]
  end
end

require 'webmock/rspec'

require 'ably'

require 'support/api_helper'
require 'support/debug_failure_helper'
require 'support/event_emitter_helper'
require 'support/private_api_formatter'
require 'support/protocol_helper'
require 'support/random_helper'
require 'support/serialization_helper'
require 'support/test_logger_helper'

require 'rspec_config'

# EM Helper must be loaded after rspec_config to ensure around block occurs before RSpec retry
require 'support/event_machine_helper'
require 'support/rest_testapp_before_retry'

Version data entries

18 entries across 18 versions & 2 rubygems

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