spec/i18n_tasks_spec.rb in i18n-tasks-0.2.19 vs spec/i18n_tasks_spec.rb in i18n-tasks-0.2.20

- old
+ new

@@ -18,30 +18,30 @@ let(:expected_unused_keys) { %w(unused.a unused.numeric unused.plural) } it 'detects unused' do TestCodebase.capture_stderr do out = TestCodebase.rake_result('i18n:unused') - out.should be_i18n_keys expected_unused_keys + expect(out).to be_i18n_keys expected_unused_keys end end it 'removes unused' do TestCodebase.in_test_app_dir do t = I18n::Tasks::BaseTask.new expected_unused_keys.each do |key| - t.t(t.data[:en], key).should be_present - t.t(t.data[:es], key).should be_present + expect(t.t(t.data[:en], key)).to be_present + expect(t.t(t.data[:es], key)).to be_present end 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 + expect(t.t(t.data[:en], key)).to be_nil + expect(t.t(t.data[:es], key)).to be_nil end end end end