2019-04-29 20:27:42 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-06-15 04:08:23 -04:00
|
|
|
require "i18n/i18n_interpolation_keys_finder"
|
|
|
|
|
|
|
|
RSpec.describe I18nInterpolationKeysFinder do
|
|
|
|
describe '#find' do
|
|
|
|
it 'should return the right keys' do
|
2018-09-04 06:01:29 -04:00
|
|
|
expect(described_class.find('%{first} %{second} {{third}}'))
|
|
|
|
.to eq(['first', 'second', 'third'])
|
2017-06-15 04:08:23 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|