Sha256: ed6fc52fa8dbe031dddd5153d2cf809ffa7ea6f917f291bdf853ef0c2fecbcc3
Contents?: true
Size: 1.57 KB
Versions: 5
Compression:
Stored size: 1.57 KB
Contents
require 'rubygems' require 'factory_girl' # require 'express_translate' require 'action_pack' require 'action_controller' require_relative '../lib/express_translate' require_relative '../lib/express_translate/database_management' require_relative '../lib/express_translate/express_translate_model' require_relative '../lib/express_translate/language_detail_management' require_relative '../lib/express_translate/package_management' require_relative '../lib/express_translate/languages_management' require_relative '../lib/express_translate/account_management' require_relative '../app/controllers/express_translate/base_controller' require_relative '../app/controllers/express_translate/ajax/codes_controller' require_relative '../app/controllers/express_translate/ajax/languages_controller' require_relative '../app/controllers/express_translate/ajax/packages_controller' require_relative '../app/controllers/express_translate/account_controller' require_relative '../app/controllers/express_translate/files_controller' require_relative '../app/controllers/express_translate/options_controller' require_relative '../app/controllers/express_translate/services_controller' include ExpressTranslate RSpec.configure do |config| config.include FactoryGirl::Syntax::Methods # Rails.env = "test" Redis.stub(:new).and_return({}) Redis.class_eval do @memory_redis = {} alias_method :original_set, :set def set(key, obj) @memory_redis[key] = obj.to_json end def get(key) @memory_redis[key] end def del(key) @memory_redis.delete(:key) end end end
Version data entries
5 entries across 5 versions & 1 rubygems