Skip to content

Commit

Permalink
KBP-139 #time 15m - fixed code
Browse files Browse the repository at this point in the history
FatihAvsan committed Oct 27, 2017

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent cbb1c0e commit 1090abc
Showing 5 changed files with 25 additions and 1 deletion.
8 changes: 8 additions & 0 deletions spec/features/new_default_project_spec.rb
Original file line number Diff line number Diff line change
@@ -161,8 +161,16 @@
expect(locale_file).to match('number:')

expect(File).to exist(file_project_path('config/locales/email.tr.yml'))
locale_file = content('config/locales/email.tr.yml')
expect(locale_file).to match('email:')

expect(File).to exist(file_project_path('config/locales/models.tr.yml'))
locale_file = content('config/locales/models.tr.yml')
expect(locale_file).to match('activerecord:')

expect(File).to exist(file_project_path('config/locales/view.tr.yml'))
locale_file = content('config/locales/view.tr.yml')
expect(locale_file).to match('view:')
end

it 'uses simple_form' do
9 changes: 8 additions & 1 deletion spec/features/new_not_default_project_spec.rb
Original file line number Diff line number Diff line change
@@ -141,11 +141,18 @@
expect(locale_file).to match('number:')

expect(File).to exist(file_project_path('config/locales/email.tr.yml'))
locale_file = content('config/locales/email.tr.yml')
expect(locale_file).to match('email:')

expect(File).to exist(file_project_path('config/locales/models.tr.yml'))
locale_file = content('config/locales/models.tr.yml')
expect(locale_file).to match('activerecord:')

expect(File).to exist(file_project_path('config/locales/view.tr.yml'))
locale_file = content('config/locales/view.tr.yml')
expect(locale_file).to match('view:')
end


it 'uses recipient_interceptor' do
gemfile_file = content('Gemfile')
expect(gemfile_file).to match(/^gem 'recipient_interceptor'/)
5 changes: 5 additions & 0 deletions templates/config/locales/email.tr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
tr:
email:
salut: 'Merhaba %{user};'
hello: 'Merhaba;'
2 changes: 2 additions & 0 deletions templates/config/locales/models.tr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
tr:
activerecord:
2 changes: 2 additions & 0 deletions templates/config/locales/view.tr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
tr:
view:

0 comments on commit 1090abc

Please sign in to comment.