Sha256: 9e24d1a2fd9aad9f0ad65413f235864161ed53a169faad09eda653b6d57b7fbb

Contents?: true

Size: 656 Bytes

Versions: 7

Compression:

Stored size: 656 Bytes

Contents

# frozen_string_literal: true

require 'i18n/tasks'

RSpec.describe 'I18n', type: :i18n do
  let(:i18n) { I18n::Tasks::BaseTask.new }
  let(:missing_keys) { i18n.missing_keys }
  let(:unused_keys) { i18n.unused_keys }

  it 'does not have missing keys' do
    expect(missing_keys).to be_empty,
                            "Missing #{missing_keys.leaves.count} i18n keys, run `i18n-tasks missing' to show them"
  end

  it 'does not have unused keys' do
    pending 'Many unused keys are detected'
    expect(unused_keys).to be_empty,
                           "#{unused_keys.leaves.count} unused i18n keys, run `i18n-tasks unused' to show them"
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
blacklight-8.6.1 spec/i18n_spec.rb
blacklight-8.6.0 spec/i18n_spec.rb
blacklight-8.5.1 spec/i18n_spec.rb
blacklight-8.5.0 spec/i18n_spec.rb
blacklight-8.4.0 spec/i18n_spec.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-8.3.0/spec/i18n_spec.rb
blacklight-8.3.0 spec/i18n_spec.rb