Skip to content

Commit

Permalink
KBP-129 #time 10m - fixed code
Browse files Browse the repository at this point in the history
  • Loading branch information
FatihAvsan committed Nov 2, 2017
1 parent 564f972 commit 0de34de
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ def responder_test_helper
expect(controller_file).to match('respond_to :html, :js, :json')

expect(File).to exist(file_project_path('config/locales/responders.en.yml'))
expect(File).to exist(file_project_path('config/locales/responders.tr.yml'))
locale_file = content('config/locales/responders.tr.yml')
expect(locale_file).not_to match('# alert:')
expect(locale_file).to match('create:')
Expand All @@ -66,34 +65,27 @@ def responder_test_helper

def locale_language_test_helper
expect(File).to exist(file_project_path('config/locales/en.yml'))
expect(File).to exist(file_project_path('config/locales/tr.yml'))
locale_file = content('config/locales/tr.yml')
expect(locale_file).to match('phone:')
expect(locale_file).to match('date:')
expect(locale_file).to match('time:')
expect(locale_file).to match('number:')

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

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.en.yml'))
locale_file = content('config/locales/models.en.yml')
expect(locale_file).to match('activerecord:')

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.en.yml'))
locale_file = content('config/locales/view.en.yml')
expect(locale_file).to match('view:')

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
Expand Down

0 comments on commit 0de34de

Please sign in to comment.