File tree Expand file tree Collapse file tree 2 files changed +45
-1
lines changed Expand file tree Collapse file tree 2 files changed +45
-1
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ I was inspired by [udzura's mock](https://gist.github.com/1881139).}
3333 spec . require_paths = [ "lib" ]
3434
3535 spec . add_dependency "parser"
36- spec . add_dependency "proc_to_ast"
36+ spec . add_dependency "proc_to_ast" , ">= 0.2.0"
3737 spec . add_dependency "rspec" , ">= 2.13" , "< 4"
3838 spec . add_dependency "unparser"
3939
Original file line number Diff line number Diff line change 259259 end
260260 end
261261 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
262306 end
263307
264308 context "when the where block is after with_them" do
You can’t perform that action at this time.
0 commit comments