Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add work-around to allow rspec to work with ruby 2.0

  • Loading branch information...
commit ae9cf19fa06da97c58d10069bdd85829f8e5e50f 1 parent 4878094
@dkubb authored
Showing with 4 additions and 0 deletions.
  1. +3 −0  spec/support/config_alias.rb
  2. +1 −0  tasks/spec.rake
View
3  spec/support/config_alias.rb
@@ -0,0 +1,3 @@
+require 'rbconfig'
+
+::Config = RbConfig unless defined?(::Config)
View
1  tasks/spec.rake
@@ -3,6 +3,7 @@ require 'spec/rake/verify_rcov'
spec_defaults = lambda do |spec|
spec.pattern = 'spec/**/*_spec.rb'
+ spec.ruby_opts = %w[ -r./spec/support/config_alias ]
spec.spec_opts << '--options' << 'spec/spec.opts'
end
Please sign in to comment.
Something went wrong with that request. Please try again.