spec/i18n_tasks_spec.rb in i18n-tasks-0.2.11 vs spec/i18n_tasks_spec.rb in i18n-tasks-0.2.12
- old
+ new
@@ -31,11 +31,13 @@
expected_unused_keys.each do |key|
t.t(t.data[:en], key).should be_present
t.t(t.data[:es], key).should be_present
end
- t.remove_unused!(t.locales)
+ ENV['CONFIRM'] = '1'
+ TestCodebase.capture_stderr { TestCodebase.rake_result('i18n:remove_unused') }
+ t.data.reload
# or save both to an xlsx file:
expected_unused_keys.each do |key|
t.t(t.data[:en], key).should be_nil
t.t(t.data[:es], key).should be_nil
end