spec/helper.rb in simple_oauth-0.2.0 vs spec/helper.rb in simple_oauth-0.3.0
- old
+ new
@@ -1,9 +1,14 @@
-unless ENV['CI']
+if RUBY_VERSION >= '1.9'
require 'simplecov'
+ require 'coveralls'
+
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter]
+
SimpleCov.start do
- add_filter 'spec'
+ add_filter '/spec/'
+ minimum_coverage(100)
end
end
require 'simple_oauth'
require 'rspec'
@@ -16,6 +21,6 @@
config.expect_with :rspec do |c|
c.syntax = :expect
end
end
-Dir[File.expand_path('../support/**/*.rb', __FILE__)].each{|f| require f }
+Dir[File.expand_path('../support/**/*.rb', __FILE__)].each { |f| require f }