fix tests

This commit is contained in:
Yuki 2015-06-07 06:27:21 +05:30
parent 80b1c1af96
commit ce2323d675
2 changed files with 3 additions and 1 deletions

View File

@ -9,6 +9,8 @@ class ApplicationController < ActionController::Base
# check if user wants to read
def check_locale
return I18n.locale = 'en' if Rails.env.test?
if params[:hl].nil?
if current_user.present?
I18n.locale = current_user.locale

View File

@ -33,4 +33,4 @@
%input{type: 'checkbox', name: 'ib-share', checked: :checked, data: { ib_id: i.id, service: service.provider }}
= raw t('views.inbox.entry.sharing.post', service: service.provider.capitalize)
- else
%p= raw t('views.inbox.entry.sharing.none', settings: link_to(t('views.inbox.entry.sharing.settings', services_path)))
%p= raw t('views.inbox.entry.sharing.none', settings: link_to(t('views.inbox.entry.sharing.settings'), services_path))