Sha256: 6d2711485da38012133eaf44016afc62dcb3babed95b6e7d23527f5bc8484a83
Contents?: true
Size: 1.48 KB
Versions: 4
Compression:
Stored size: 1.48 KB
Contents
# encoding: utf-8 if ENV['COV'] require 'simplecov' require 'coveralls' SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter ] SimpleCov.start do add_filter '/spec/' add_filter '/config/' add_filter '/db/' add_group 'Models', '/app/models/' add_group 'Controllers', '/app/controllers/' add_group 'Helpers', '/app/helpers/' add_group 'Lib', '/lib/' end end ENV['RAILS_ENV'] ||= 'test' $LOAD_PATH << File.expand_path('../../lib', __FILE__) require 'rubygems' require 'bundler' require 'combustion' Bundler.require :default, :test require 'capybara/rspec' Combustion.initialize! :action_controller, :action_view require 'rspec/rails' require 'rspec/autorun' require 'capybara/rails' require 'rails-i18nterface' new_root = File.expand_path(File.join('..', 'internal'), __FILE__) RSpec.configure do |config| config.mock_with :rspec config.include Capybara::DSL, example_group: { file_path: /\bspec\/request\// } config.include RailsI18nterface::Engine.routes.url_helpers config.before(:each) do RailsI18nterface::Keys.stub(:i18n_keys).and_return(:en) I18n.stub!(:default_locale).and_return(:en) I18n.stub!(:available_locales).and_return([:sv, :no, :en, :root]) end end # improve the performance of the specs suite by not logging anything # see http://blog.plataformatec.com.br/2011/12/three-tips-to-improve-the-performance-of-your-test-suite/ Rails.logger.level = 4
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rails-i18nterface-0.2.4 | spec/spec_helper.rb |
rails-i18nterface-0.2.3 | spec/spec_helper.rb |
rails-i18nterface-0.2.2 | spec/spec_helper.rb |
rails-i18nterface-0.2.1 | spec/spec_helper.rb |