Translations

This commit is contained in:
Godwin 2014-05-04 15:29:50 -06:00
parent e5f9dc5666
commit ad2a897ef7
3 changed files with 3 additions and 9 deletions

View File

@ -90,9 +90,11 @@ module I18n
end
def initialize
if Rails.env.test? || !File.exist?(filename)
File.open(@@translation_cache_file, 'w+')
end
if Rails.env.test?
File.open(@@translations_file, 'w+')
File.open(@@translation_cache_file, 'w+')
end
@@translation_cache = YAML.load(File.read(@@translation_cache_file)) || Hash.new
super

View File

@ -1,8 +0,0 @@
require 'spec_helper'
describe 'Home' do
#it "has Hello World in title" do
# visit root_path
# expect(page).to have_title I18n.t('hello')
#end
end

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB