Skip to content

Commit

Permalink
Merged in feature/integrate_i18n_gem (pull request #12)
Browse files Browse the repository at this point in the history
KBP-130 #time 30m - integrate rails-i18n gem

Approved-by: İsmail Akbudak <ismail.akbudak@lab2023.com>
Approved-by: Eşref VİDUŞLU <esref.viduslu@lab2023.com>
  • Loading branch information
FatihAvsan authored and İsmail Akbudak committed Oct 31, 2017
2 parents 0806df7 + aa8dfe6 commit e10314b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/features/new_default_project_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'/)
Expand Down
5 changes: 5 additions & 0 deletions spec/features/new_not_default_project_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'/)
Expand Down
3 changes: 3 additions & 0 deletions templates/Gemfile.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit e10314b

Please sign in to comment.