spec/spec_helper.rb in rake-n-bake-1.0.0 vs spec/spec_helper.rb in rake-n-bake-1.0.1
- old
+ new
@@ -1,11 +1,14 @@
require 'simplecov'
require 'timecop'
require 'tempfile'
+def production_code
+ spec = caller[0][/spec.+\.rb/]
+ './'+ spec.gsub('_spec','').gsub(/spec/, 'lib')
+end
+
SimpleCov.start do
add_filter '/vendor/'
add_filter '/spec/'
coverage_dir 'log/coverage/spec'
end
-
-require_relative '../lib/rake_n_bake'