Skip to content

Commit

Permalink
KBP-130 #time 30m - integrate rails-i18n gem
Browse files Browse the repository at this point in the history
  • Loading branch information
FatihAvsan committed Oct 31, 2017
1 parent 8434185 commit 51efdd7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 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 @@ -117,6 +117,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
6 changes: 5 additions & 1 deletion spec/features/new_not_default_project_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,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 Expand Up @@ -168,7 +173,6 @@
expect(locale_file).to match('view:')
end


it 'uses recipient_interceptor' do
gemfile_file = content('Gemfile')
expect(gemfile_file).to match(/^gem 'recipient_interceptor'/)
Expand Down
5 changes: 4 additions & 1 deletion templates/Gemfile.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,7 @@ gem 'roo', '~> 2.7', '>= 2.7.1'
group :development, :test do
gem 'colorize', '~> 0.8.1'
gem 'better_errors', '~> 2.4'
end
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 51efdd7

Please sign in to comment.