File tree Expand file tree Collapse file tree 5 files changed +25
-1
lines changed Expand file tree Collapse file tree 5 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 161
161
expect ( locale_file ) . to match ( 'number:' )
162
162
163
163
expect ( File ) . to exist ( file_project_path ( 'config/locales/email.tr.yml' ) )
164
+ locale_file = content ( 'config/locales/email.tr.yml' )
165
+ expect ( locale_file ) . to match ( 'email:' )
166
+
164
167
expect ( File ) . to exist ( file_project_path ( 'config/locales/models.tr.yml' ) )
168
+ locale_file = content ( 'config/locales/models.tr.yml' )
169
+ expect ( locale_file ) . to match ( 'activerecord:' )
170
+
165
171
expect ( File ) . to exist ( file_project_path ( 'config/locales/view.tr.yml' ) )
172
+ locale_file = content ( 'config/locales/view.tr.yml' )
173
+ expect ( locale_file ) . to match ( 'view:' )
166
174
end
167
175
168
176
it 'uses simple_form' do
Original file line number Diff line number Diff line change 141
141
expect ( locale_file ) . to match ( 'number:' )
142
142
143
143
expect ( File ) . to exist ( file_project_path ( 'config/locales/email.tr.yml' ) )
144
+ locale_file = content ( 'config/locales/email.tr.yml' )
145
+ expect ( locale_file ) . to match ( 'email:' )
146
+
144
147
expect ( File ) . to exist ( file_project_path ( 'config/locales/models.tr.yml' ) )
148
+ locale_file = content ( 'config/locales/models.tr.yml' )
149
+ expect ( locale_file ) . to match ( 'activerecord:' )
150
+
145
151
expect ( File ) . to exist ( file_project_path ( 'config/locales/view.tr.yml' ) )
152
+ locale_file = content ( 'config/locales/view.tr.yml' )
153
+ expect ( locale_file ) . to match ( 'view:' )
146
154
end
147
155
148
-
149
156
it 'uses recipient_interceptor' do
150
157
gemfile_file = content ( 'Gemfile' )
151
158
expect ( gemfile_file ) . to match ( /^gem 'recipient_interceptor'/ )
Original file line number Diff line number Diff line change
1
+ ---
2
+ tr :
3
+ email :
4
+ salut : ' Merhaba %{user};'
5
+ hello : ' Merhaba;'
Original file line number Diff line number Diff line change
1
+ tr :
2
+ activerecord:
Original file line number Diff line number Diff line change
1
+ tr :
2
+ view:
You can’t perform that action at this time.
0 commit comments