Sha256: 511416427ce0c8229c860a5395f14f6252a1ffca392b400620f8480880b4d56c

Contents?: true

Size: 800 Bytes

Versions: 6

Compression:

Stored size: 800 Bytes

Contents

# encoding: utf-8
$:.unshift(File.dirname(__FILE__))
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

require 'simplecov'
SimpleCov.start 'rails'
SimpleCov.coverage_dir 'coverage'

require 'sk_sdk'
require 'sk_sdk/base'
require 'sk_sdk/sync'
require 'sk_sdk/oauth'
require 'sk_sdk/signed_request'
require 'rubygems'
require 'yaml'
require 'rspec'
require 'active_support'
require 'active_support/json'

puts "Testing with ActiveResource v: #{ActiveResource::VERSION::STRING}"

def basic_auth_settings
  get_settings['basic_auth'].symbolize_keys
end

def oauth_settings
  get_settings['oauth']
end

def get_settings
  @settings ||= begin
    YAML.load_file(File.join(File.dirname(__FILE__), 'settings.yml'))
    rescue => e
      raise 'Missing settings.yml in spec/settings.yml'
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sk_sdk-0.4.3 spec/spec_helper.rb
sk_sdk-0.4.2 spec/spec_helper.rb
sk_sdk-0.4.1 spec/spec_helper.rb
sk_sdk-0.4.0 spec/spec_helper.rb
sk_sdk-0.3.0 spec/spec_helper.rb
sk_sdk-0.2.2 spec/spec_helper.rb