Sha256: a35ddceee9c0dc83b6f8348f0d7739760adc6566deeab1177720068100360f0e
Contents?: true
Size: 242 Bytes
Versions: 17
Compression:
Stored size: 242 Bytes
Contents
module I18nFaker def stub_translation(key, message) yml = key.split('.').reverse.inject(message) { |a, n| { n => a } } I18n.backend.store_translations(:en, yml) end end RSpec.configure do |config| config.include I18nFaker end
Version data entries
17 entries across 17 versions & 3 rubygems