spec/spec_helper.rb in credentials-2.1.0 vs spec/spec_helper.rb in credentials-2.2.0

- old
+ new

@@ -1,6 +1,11 @@ -$: << File.dirname(__FILE__) + "/../lib" -require "credentials" -require "spec" -require "date" +begin + require File.dirname(__FILE__) + '/../../../../spec/spec_helper' +rescue LoadError + puts "NOTE: install rspec in your base app to test Rails integration" + $: << File.dirname(__FILE__) + "/../lib" + require "credentials" + require "spec" + require "date" +end require File.join(File.dirname(__FILE__), "domain.rb")