aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorrhenium <re4k@re4k.info>2013-06-08 15:29:37 +0900
committerrhenium <re4k@re4k.info>2013-06-08 15:29:37 +0900
commit4de8912eea9c89df22b4ed93ebd911b2dc1a9319 (patch)
tree5c86650f8c20992a8acff58a9c38e7f7b5ff7af8 /spec
parent01b3f5d280a06a7261720cdc464f45fd7684f778 (diff)
downloadaclog-4de8912eea9c89df22b4ed93ebd911b2dc1a9319.tar.gz
add Travis and Coveralls
Diffstat (limited to 'spec')
-rw-r--r--spec/spec_helper.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index eaab06d..1acaef1 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,5 +1,16 @@
# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV["RAILS_ENV"] ||= 'test'
+
+require "coveralls"
+require "simplecov"
+
+Coveralls.wear! "rails"
+SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
+ Coveralls::SimpleCov::Formatter,
+ SimpleCov::Formatter::HTMLFormatter
+]
+SimpleCov.start
+
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'
require 'rspec/autorun'