File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 259
259
end
260
260
end
261
261
end
262
+
263
+ context "have multibyte string usecase" do
264
+ context 'only in lazy' do
265
+ where ( :value , :answer ) do
266
+ [
267
+ [ "non multibyte parameter" , lazy { "パラメータ is non multibyte parameter" } ]
268
+ ]
269
+ end
270
+
271
+ with_them do
272
+ it "should run with correct description" do
273
+ expect ( "パラメータ is #{ value } " ) . to eq answer
274
+ end
275
+ end
276
+ end
277
+
278
+ context 'with multibyte other parameter' do
279
+ where ( :value , :answer ) do
280
+ [
281
+ [ "lazyとは別のパラメータ" , lazy { "パラメータ is lazyとは別のパラメータ" } ]
282
+ ]
283
+ end
284
+
285
+ with_them do
286
+ it "should run with correct description" do
287
+ expect ( "パラメータ is #{ value } " ) . to eq answer
288
+ end
289
+ end
290
+ end
291
+
292
+ context 'use マルチバイト in ancestor context description' do
293
+ where ( :value , :answer ) do
294
+ [
295
+ [ "non multibyte parameter" , lazy { "パラメータ is non multibyte parameter" } ]
296
+ ]
297
+ end
298
+
299
+ with_them do
300
+ it "should run with correct description" do
301
+ expect ( "パラメータ is #{ value } " ) . to eq answer
302
+ end
303
+ end
304
+ end
305
+ end
262
306
end
263
307
264
308
context "when the where block is after with_them" do
You can’t perform that action at this time.
0 commit comments