Sha256: 272a5a45ef8728d0309b6fb5c01d5f59f940350b749337cd301cb602908a06d1
Contents?: true
Size: 665 Bytes
Versions: 4
Compression:
Stored size: 665 Bytes
Contents
begin require 'codeclimate-test-reporter' CodeClimate::TestReporter.start rescue LoadError end require 'dbf' require 'yaml' require 'rspec' require 'fileutils' Encoding.default_external = "UTF-8" if defined?(Encoding) DB_PATH = File.dirname(__FILE__) + '/fixtures' unless defined?(DB_PATH) if RUBY_VERSION == "1.8.6" # warn 'ruby-1.8.6: defining Array#reduce as alias of Array#inject' class Array alias_method :reduce, :inject end end RSpec.configure do |config| def ruby_supports_mathn? begin require 'mathn' rescue UnsupportedLibraryError false end end end def fixture_path(filename) "#{DB_PATH}/#{filename}" end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
dbf-2.0.13 | spec/spec_helper.rb |
dbf-2.0.12 | spec/spec_helper.rb |
dbf-2.0.11 | spec/spec_helper.rb |
dbf-2.0.10 | spec/spec_helper.rb |