spec/spec_helper.rb in agent-0.9.1 vs spec/spec_helper.rb in agent-0.10.0

- old
+ new

@@ -12,8 +12,9 @@ config.treat_symbols_as_metadata_keys_with_true_values = true config.run_all_when_everything_filtered = true config.filter_run :focus config.filter_run_excluding :vm => lambda { |version| - !(Config::CONFIG['ruby_install_name'] =~ /^#{version.to_s}/) + c = defined?(RbConfig) ? RbConfig : Config + !(c::CONFIG['ruby_install_name'] =~ /^#{version.to_s}/) } end