spec/spec_helper.rb in waddup-0.0.1 vs spec/spec_helper.rb in waddup-0.0.2
- old
+ new
@@ -1,10 +1,14 @@
-require 'simplecov'
-require 'coveralls'
+if RUBY_VERSION >= '1.9.3'
+ require 'simplecov'
+ require 'coveralls'
-SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
- SimpleCov::Formatter::HTMLFormatter,
- Coveralls::SimpleCov::Formatter
-]
-SimpleCov.start
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
+ SimpleCov::Formatter::HTMLFormatter,
+ Coveralls::SimpleCov::Formatter
+ ]
+ SimpleCov.start
+end
require 'waddup'
+
+Dir['./spec/support/**/*.rb'].sort.each { |file| require file }