spec/rspec/spec_helper.rb in caricature-0.7.2 vs spec/rspec/spec_helper.rb in caricature-0.7.5
- old
+ new
@@ -1,6 +1,12 @@
-
-require 'rubygems'
-# load the rspec library
-require 'spec' unless defined? Spec
-
-require File.dirname(__FILE__) + "/../spec_helper"
\ No newline at end of file
+
+require 'rubygems'
+# load the rspec library
+require 'spec' unless defined? Spec
+
+require File.dirname(__FILE__) + "/../spec_helper"
+
+
+Spec::Runner.configure do |config|
+ config.mock_with Caricature::RSpecAdapter
+ config.include Caricature::RSpecMatchers
+end