spec/i18n_tasks_spec.rb in i18n-tasks-0.4.0.beta1 vs spec/i18n_tasks_spec.rb in i18n-tasks-0.4.0

- old
+ new

@@ -10,11 +10,13 @@ let (:expected_missing_keys) { %w( en.used_but_missing.key en.relative.index.missing es.missing_in_es.a es.same_in_es.a en.hash.pattern_missing.a en.hash.pattern_missing.b en.missing_symbol_key en.missing_symbol.key_two en.missing_symbol.key_three - es.missing_in_es_plural_1.a es.missing_in_es_plural_2.a) + es.missing_in_es_plural_1.a es.missing_in_es_plural_2.a + en.missing-key-with-a-dash.key + ) } it 'detects missing or identical' do capture_stderr do expect(run_cmd :missing).to be_i18n_keys expected_missing_keys es_keys = expected_missing_keys.grep(/^es\./) @@ -37,20 +39,20 @@ describe 'remove_unused' do it 'removes unused' do in_test_app_dir do t = i18n_task expected_unused_keys.each do |key| - expect(t.key_value?(key, :en)).to be_true - expect(t.key_value?(key, :es)).to be_true + expect(t.key_value?(key, :en)).to be true + expect(t.key_value?(key, :es)).to be true end ENV['CONFIRM'] = '1' capture_stderr { run_cmd :remove_unused } t.data.reload expected_unused_keys.each do |key| - expect(t.key_value?(key, :en)).to be_false - expect(t.key_value?(key, :es)).to be_false + expect(t.key_value?(key, :en)).to be false + expect(t.key_value?(key, :es)).to be false end end end end