spec/spec_helper.rb in chrislloyd-gravtastic-2.0.0 vs spec/spec_helper.rb in chrislloyd-gravtastic-2.1.0
- old
+ new
@@ -4,6 +4,12 @@
def reload_gravtastic!
Object.class_eval { remove_const :Gravtastic } if defined? Gravtastic
require File.join(File.dirname(__FILE__),'../lib/gravtastic')
end
-require 'gravtastic'
+Spec::Runner.configure do |config|
+ config.mock_with :rr
+end
+
+class Class
+ def to_sym; name.to_sym end
+end