|
17 | 17 | it 'supports enabling header per single puts' do |
18 | 18 | PutsDebuggererInvoker.dynamic_nested_array(header: true) # support options alone |
19 | 19 | output = $stdout.string |
20 | | - expect(output).to eq("#{PutsDebuggerer::HEADER_DEFAULT}\n[PD] #{puts_debuggerer_invoker_file}:26 in PutsDebuggererInvoker.dynamic_nested_array\n > pd *array_including_options\n => {}\n") |
| 20 | + expect(output).to eq("#{PutsDebuggerer::HEADER_DEFAULT}\n[PD] #{puts_debuggerer_invoker_file}:26 in PutsDebuggererInvoker.dynamic_nested_array\n > pd *array_including_options\n => {:header=>true}\n") |
21 | 21 | $stdout = StringIO.new |
22 | 22 | PutsDebuggererInvoker.dynamic_nested_array([1, [2, 3]], header: true) |
23 | 23 | output = $stdout.string |
24 | 24 | expect(output).to eq("#{PutsDebuggerer::HEADER_DEFAULT}\n[PD] #{puts_debuggerer_invoker_file}:26 in PutsDebuggererInvoker.dynamic_nested_array\n > pd *array_including_options\n => [1, [2, 3]]\n") |
25 | 25 | $stdout = StringIO.new |
26 | 26 | PutsDebuggererInvoker.dynamic_nested_array(name: 'Sean', header: true) # support hash including options |
27 | 27 | output = $stdout.string |
28 | | - expect(output).to eq("#{PutsDebuggerer::HEADER_DEFAULT}\n[PD] #{puts_debuggerer_invoker_file}:26 in PutsDebuggererInvoker.dynamic_nested_array\n > pd *array_including_options\n => {:name=>\"Sean\"}\n") |
| 28 | + expect(output).to eq("#{PutsDebuggerer::HEADER_DEFAULT}\n[PD] #{puts_debuggerer_invoker_file}:26 in PutsDebuggererInvoker.dynamic_nested_array\n > pd *array_including_options\n => {:name=>\"Sean\", :header=>true}\n") |
29 | 29 | $stdout = StringIO.new |
30 | 30 | PutsDebuggererInvoker.dynamic_nested_array([1, [2, 3]]) |
31 | 31 | output = $stdout.string |
|
34 | 34 | it 'supports enabling header per single puts using shortcut syntax' do |
35 | 35 | PutsDebuggererInvoker.dynamic_nested_array(h: :t) # support options alone |
36 | 36 | output = $stdout.string |
37 | | - expect(output).to eq("#{PutsDebuggerer::HEADER_DEFAULT}\n[PD] #{puts_debuggerer_invoker_file}:26 in PutsDebuggererInvoker.dynamic_nested_array\n > pd *array_including_options\n => {}\n") |
| 37 | + expect(output).to eq("#{PutsDebuggerer::HEADER_DEFAULT}\n[PD] #{puts_debuggerer_invoker_file}:26 in PutsDebuggererInvoker.dynamic_nested_array\n > pd *array_including_options\n => {:h=>:t}\n") |
38 | 38 | $stdout = StringIO.new |
39 | 39 | PutsDebuggererInvoker.dynamic_nested_array([1, [2, 3]], h: :t) |
40 | 40 | output = $stdout.string |
41 | 41 | expect(output).to eq("#{PutsDebuggerer::HEADER_DEFAULT}\n[PD] #{puts_debuggerer_invoker_file}:26 in PutsDebuggererInvoker.dynamic_nested_array\n > pd *array_including_options\n => [1, [2, 3]]\n") |
42 | 42 | $stdout = StringIO.new |
43 | 43 | PutsDebuggererInvoker.dynamic_nested_array(name: 'Sean', h: :t) # support hash including options |
44 | 44 | output = $stdout.string |
45 | | - expect(output).to eq("#{PutsDebuggerer::HEADER_DEFAULT}\n[PD] #{puts_debuggerer_invoker_file}:26 in PutsDebuggererInvoker.dynamic_nested_array\n > pd *array_including_options\n => {:name=>\"Sean\"}\n") |
| 45 | + expect(output).to eq("#{PutsDebuggerer::HEADER_DEFAULT}\n[PD] #{puts_debuggerer_invoker_file}:26 in PutsDebuggererInvoker.dynamic_nested_array\n > pd *array_including_options\n => {:name=>\"Sean\", :h=>:t}\n") |
46 | 46 | $stdout = StringIO.new |
47 | 47 | PutsDebuggererInvoker.dynamic_nested_array([1, [2, 3]]) |
48 | 48 | output = $stdout.string |
|
51 | 51 | it 'supports enabling footer per single puts' do |
52 | 52 | PutsDebuggererInvoker.dynamic_nested_array(footer: true) # support options alone |
53 | 53 | output = $stdout.string |
54 | | - expect(output).to eq("[PD] #{puts_debuggerer_invoker_file}:26 in PutsDebuggererInvoker.dynamic_nested_array\n > pd *array_including_options\n => {}\n#{PutsDebuggerer::FOOTER_DEFAULT}\n") |
| 54 | + expect(output).to eq("[PD] #{puts_debuggerer_invoker_file}:26 in PutsDebuggererInvoker.dynamic_nested_array\n > pd *array_including_options\n => {:footer=>true}\n#{PutsDebuggerer::FOOTER_DEFAULT}\n") |
55 | 55 | $stdout = StringIO.new |
56 | 56 | PutsDebuggererInvoker.dynamic_nested_array([1, [2, 3]], footer: true) |
57 | 57 | output = $stdout.string |
58 | 58 | expect(output).to eq("[PD] #{puts_debuggerer_invoker_file}:26 in PutsDebuggererInvoker.dynamic_nested_array\n > pd *array_including_options\n => [1, [2, 3]]\n#{PutsDebuggerer::FOOTER_DEFAULT}\n") |
59 | 59 | $stdout = StringIO.new |
60 | 60 | PutsDebuggererInvoker.dynamic_nested_array(name: 'Sean', footer: true) # support hash including options |
61 | 61 | output = $stdout.string |
62 | | - expect(output).to eq("[PD] #{puts_debuggerer_invoker_file}:26 in PutsDebuggererInvoker.dynamic_nested_array\n > pd *array_including_options\n => {:name=>\"Sean\"}\n#{PutsDebuggerer::FOOTER_DEFAULT}\n") |
| 62 | + expect(output).to eq("[PD] #{puts_debuggerer_invoker_file}:26 in PutsDebuggererInvoker.dynamic_nested_array\n > pd *array_including_options\n => {:name=>\"Sean\", :footer=>true}\n#{PutsDebuggerer::FOOTER_DEFAULT}\n") |
63 | 63 | $stdout = StringIO.new |
64 | 64 | PutsDebuggererInvoker.dynamic_nested_array([1, [2, 3]]) |
65 | 65 | output = $stdout.string |
|
68 | 68 | it 'supports enabling footer per single puts using shortcut syntax' do |
69 | 69 | PutsDebuggererInvoker.dynamic_nested_array(f: :t) # support options alone |
70 | 70 | output = $stdout.string |
71 | | - expect(output).to eq("[PD] #{puts_debuggerer_invoker_file}:26 in PutsDebuggererInvoker.dynamic_nested_array\n > pd *array_including_options\n => {}\n#{PutsDebuggerer::FOOTER_DEFAULT}\n") |
| 71 | + expect(output).to eq("[PD] #{puts_debuggerer_invoker_file}:26 in PutsDebuggererInvoker.dynamic_nested_array\n > pd *array_including_options\n => {:f=>:t}\n#{PutsDebuggerer::FOOTER_DEFAULT}\n") |
72 | 72 | $stdout = StringIO.new |
73 | 73 | PutsDebuggererInvoker.dynamic_nested_array([1, [2, 3]], f: :t) |
74 | 74 | output = $stdout.string |
75 | 75 | expect(output).to eq("[PD] #{puts_debuggerer_invoker_file}:26 in PutsDebuggererInvoker.dynamic_nested_array\n > pd *array_including_options\n => [1, [2, 3]]\n#{PutsDebuggerer::FOOTER_DEFAULT}\n") |
76 | 76 | $stdout = StringIO.new |
77 | 77 | PutsDebuggererInvoker.dynamic_nested_array(name: 'Sean', f: :t) # support hash including options |
78 | 78 | output = $stdout.string |
79 | | - expect(output).to eq("[PD] #{puts_debuggerer_invoker_file}:26 in PutsDebuggererInvoker.dynamic_nested_array\n > pd *array_including_options\n => {:name=>\"Sean\"}\n#{PutsDebuggerer::FOOTER_DEFAULT}\n") |
| 79 | + expect(output).to eq("[PD] #{puts_debuggerer_invoker_file}:26 in PutsDebuggererInvoker.dynamic_nested_array\n > pd *array_including_options\n => {:name=>\"Sean\", :f=>:t}\n#{PutsDebuggerer::FOOTER_DEFAULT}\n") |
80 | 80 | $stdout = StringIO.new |
81 | 81 | PutsDebuggererInvoker.dynamic_nested_array([1, [2, 3]]) |
82 | 82 | output = $stdout.string |
|
0 commit comments