Sha256: 5e3459b2d5c252772eedeb0ecd4aea3bd12357389f145ae4cd238fc7a923862d
Contents?: true
Size: 925 Bytes
Versions: 2
Compression:
Stored size: 925 Bytes
Contents
require 'tempfile' require 'rspec' RUBIX_ROOT = File.expand_path(__FILE__, '../../lib') $: << RUBIX_ROOT unless $:.include?(RUBIX_ROOT) require 'rubix' Rubix.logger = false unless ENV["RUBIX_LOG_LEVEL"] || ENV["RUBIX_LOG_PATH"] Dir[File.expand_path('../support/**/*.rb', __FILE__)].each { |path| require path } RSpec.configure do |config| config.mock_with :rspec config.include Rubix::ResponseSpecs config.include Rubix::IntegrationHelper config.include Rubix::ConfigliereHelper test_yml_path = File.expand_path('../test.yml', __FILE__) if File.exist?(test_yml_path) require 'yaml' test_data = YAML.load(open(test_yml_path)) if test_data['disable_integration_tests'] $RUBIX_INTEGRATION_TEST = false else Rubix.connect(test_data['url'], test_data['username'], test_data['password']) $RUBIX_INTEGRATION_TEST = true end else $RUBIX_INTEGRATION_TEST = false end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubix-0.0.8 | spec/spec_helper.rb |
rubix-0.0.7 | spec/spec_helper.rb |