Sha256: 5c2fae50f1387e3f95aaa3346299320a29d09b7d44cd8901e83591067bf92f1e
Contents?: true
Size: 700 Bytes
Versions: 3
Compression:
Stored size: 700 Bytes
Contents
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'bundler' Bundler.setup %w(support shared).each do |dir| Dir.glob(File.expand_path("../#{dir}/**/*.rb", __FILE__), &method(:require)) end require 'multi_mime' RSpec.configure do |config| config.expect_with :rspec do |c| c.syntax = :expect end end def jruby? defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby' end def undefine_constants(*consts) values = {} consts.each do |const| if Object.const_defined?(const) values[const] = Object.const_get(const) Object.send :remove_const, const end end yield ensure values.each do |const, value| Object.const_set const, value end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
multi_mime-1.0 | spec/spec_helper.rb |
multi_mime-0.0.4 | spec/spec_helper.rb |
multi_mime-0.0.3 | spec/spec_helper.rb |