Sha256: e2bff1a848e8dc73d74be334a008a343847a7ed8848c803e366fd1bd99829b68

Contents?: true

Size: 938 Bytes

Versions: 3

Compression:

Stored size: 938 Bytes

Contents

require 'simplecov'
require 'coveralls'

SimpleCov.formatter = Coveralls::SimpleCov::Formatter
SimpleCov.start do
  add_filter 'spec/'
  add_filter 'lib/livefyre/exceptions'
end

Coveralls.wear!

begin
  config = File.open('test.yml') { |yf| YAML::load(yf) }
  env = config['production']

  NETWORK_NAME = env['NETWORK_NAME']
  NETWORK_KEY = env['NETWORK_KEY']
  SITE_ID = env['SITE_ID']
  SITE_KEY = env['SITE_KEY']
  COLLECTION_ID = env['COLLECTION_ID']
  USER_ID = env['USER_ID']
  ARTICLE_ID = env['ARTICLE_ID']
rescue
  NETWORK_NAME = ENV['NETWORK_NAME'] || '<NETWORK-NAME>'
  NETWORK_KEY = ENV['NETWORK_KEY'] || '<NETWORK-KEY>'
  SITE_ID = ENV['SITE_ID'] || '<SITE-ID>'
  SITE_KEY = ENV['SITE_KEY'] || '<SITE-KEY>'
  COLLECTION_ID = ENV['COLLECTION_ID'] || '<COLLECTION-ID>'
  USER_ID = ENV['USER_ID'] || '<USER-ID>'
  ARTICLE_ID = ENV['ARTICLE_ID'] || '<ARTICLE-ID>'
end

TITLE = 'RubyTest'
URL = 'http://answers.livefyre.com/RUBY'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
livefyre-2.0.2 spec/spec_helper.rb
livefyre-2.0.1 spec/spec_helper.rb
livefyre-2.0.0 spec/spec_helper.rb