diff --git a/spec/features/new_default_project_spec.rb b/spec/features/new_default_project_spec.rb index aebbdd6..2dcf170 100644 --- a/spec/features/new_default_project_spec.rb +++ b/spec/features/new_default_project_spec.rb @@ -122,6 +122,11 @@ expect(gemfile_file).to match("gem 'better_errors'") end + it 'uses rails-i18n' do + gemfile_file = content('Gemfile') + expect(gemfile_file).to match(/^gem 'rails-i18n'/) + end + it 'uses show_for' do gemfile_file = content('Gemfile') expect(gemfile_file).to match(/^gem 'show_for'/) diff --git a/spec/features/new_not_default_project_spec.rb b/spec/features/new_not_default_project_spec.rb index 6b0e27c..70c6d8c 100644 --- a/spec/features/new_not_default_project_spec.rb +++ b/spec/features/new_not_default_project_spec.rb @@ -109,6 +109,11 @@ expect(gemfile_file).to match("gem 'better_errors'") end + it 'uses rails-i18n' do + gemfile_file = content('Gemfile') + expect(gemfile_file).to match(/^gem 'rails-i18n'/) + end + it 'do not use show_for' do gemfile_file = content('Gemfile') expect(gemfile_file).not_to match(/^gem 'show_for'/) diff --git a/templates/Gemfile.erb b/templates/Gemfile.erb index 100126a..c973621 100644 --- a/templates/Gemfile.erb +++ b/templates/Gemfile.erb @@ -27,3 +27,6 @@ group :development, :test do gem 'colorize', '~> 0.8.1' gem 'better_errors', '~> 2.4' end + +# A set of common locale data and translations to internationalize and/or localize your Rails applications. +gem 'rails-i18n', '~> 5.0', '>= 5.0.4'