Sha256: b325e761d9a8d24f8e72267901dbb31a16ff11d6ea6fa357f3d64140cac74f8a
Contents?: true
Size: 580 Bytes
Versions: 1
Compression:
Stored size: 580 Bytes
Contents
require 'pathname' require 'rubygems' require 'rspec' require 'virtus' ENV['TZ'] = 'UTC' SPEC_ROOT = Pathname(__FILE__).dirname.expand_path Pathname.glob((SPEC_ROOT + '**/shared/**/*.rb').to_s).each { |file| require file } RSpec.configure do |config| # Remove anonymous Attribute classes from Attribute descendants config.after :all do stack = [ Virtus::Attribute ] while klass = stack.pop klass.descendants.delete_if do |descendant| descendant.name.nil? || descendant.name.empty? end stack.concat(klass.descendants) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
virtus-0.0.4 | spec/spec_helper.rb |