Sha256: b691d866e7a2e5c2207a5560fa7cca34c892d81452901e8dd6f6e2e1ca75a19e
Contents?: true
Size: 714 Bytes
Versions: 6
Compression:
Stored size: 714 Bytes
Contents
require 'zendesk_apps_support' require 'pathname' describe ZendeskAppsSupport::I18n do it 'should translate error messages' do key_prefix = ZendeskAppsSupport::Validations::ValidationError::KEY_PREFIX ZendeskAppsSupport::I18n.t("#{key_prefix}.missing_manifest").should == 'Could not find manifest.json' end end describe 'translations' do it 'should be up-to-date' do project_root = Pathname.new(File.expand_path('../../', __FILE__)) zendesk_version = project_root.join('config/locales/translations/zendesk_apps_support.yml') standard_version = project_root.join('config/locales/en.yml') File.mtime(zendesk_version).to_i.should be <= File.mtime(standard_version).to_i end end
Version data entries
6 entries across 6 versions & 1 rubygems