Sha256: f8ec5420b583c86dff40b7a6e50a16ac56decd37600b3da007de821bd6227704
Contents?: true
Size: 993 Bytes
Versions: 12
Compression:
Stored size: 993 Bytes
Contents
unless defined? RADIANT_ROOT ENV["RAILS_ENV"] = "test" case when ENV["RADIANT_ENV_FILE"] require ENV["RADIANT_ENV_FILE"] when File.dirname(__FILE__) =~ %r{vendor/radiant/vendor/extensions} require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../../../")}/config/environment" else require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../")}/config/environment" end end require "#{RADIANT_ROOT}/spec/spec_helper" Dataset::Resolver.default << (File.dirname(__FILE__) + "/datasets") if File.directory?(File.dirname(__FILE__) + "/matchers") Dir[File.dirname(__FILE__) + "/matchers/*.rb"].each {|file| require file } end I18n.locale = :en Spec::Runner.configure do |config| def switch_locale(locale) current_locale = I18n.locale I18n.locale = locale result = yield I18n.locale = current_locale result end end gem 'thoughtbot-factory_girl', '>= 1.2.1' require 'factory_girl' require File.dirname(__FILE__) + "/factories.rb"
Version data entries
12 entries across 12 versions & 1 rubygems