spec/spec_helper.rb in i18n-js-3.1.0 vs spec/spec_helper.rb in i18n-js-3.2.0
- old
+ new
@@ -1,8 +1,27 @@
+require 'rubygems'
+require 'bundler'
+
+begin
+ require 'simplecov'
+ SimpleCov.start do
+ add_filter 'spec'
+ end
+rescue LoadError
+ # SimpleCov ain't available - continue
+end
+
+if ENV["TRAVIS"]
+ require "coveralls"
+ Coveralls.wear!("rails")
+end
+
require "i18n"
require "json"
require "i18n/js"
+
+require "rspec"
module Helpers
# Set the configuration as the current one
def set_config(path)
config_file_path = File.dirname(__FILE__) + "/fixtures/#{path}"