1- require_relative "./ helper"
1+ require_relative "helper"
22
33class TestCurriculumParser < Minitest ::Test
44 def self . title = "My Ruby road map"
@@ -20,15 +20,15 @@ def self.prev_parsed
2020
2121 example "blank file" ,
2222 markdown : "\n " ,
23- parsed : { title : nil , intro : nil , content : { } }
23+ parsed : { title : nil , intro : nil , content : { } }
2424
2525 example "title" ,
2626 markdown : "# #{ title } \n " ,
27- parsed : { title :, intro : nil , content : { } }
27+ parsed : { title :, intro : nil , content : { } }
2828
2929 example "intro" ,
3030 markdown : "# #{ title } \n #{ intro } " ,
31- parsed : { title :, intro :, content : { } }
31+ parsed : { title :, intro :, content : { } }
3232
3333 example "empty sections" ,
3434 markdown : <<~MD ,
@@ -43,7 +43,7 @@ def self.prev_parsed
4343 parsed : {
4444 title :,
4545 intro : nil ,
46- content : { "Preface" => nil , "Basics" => nil } ,
46+ content : { "Preface" => nil , "Basics" => nil }
4747 }
4848
4949 example "empty sections with minimal line breaks" ,
@@ -103,10 +103,10 @@ def self.prev_parsed
103103 content : {
104104 "Advanced" => {
105105 "Quantum computing" => nil ,
106- "The meaning of life" => nil ,
106+ "The meaning of life" => nil
107107 } ,
108- "Galaxy brain" => nil ,
109- } ,
108+ "Galaxy brain" => nil
109+ }
110110 }
111111
112112 example "empty subsections with minimal line breaks" ,
@@ -152,11 +152,11 @@ def self.prev_parsed
152152 "Advanced" => {
153153 "Quantum computing" => {
154154 "Basics" => nil ,
155- "Experimental tech" => nil ,
155+ "Experimental tech" => nil
156156 } ,
157- "The meaning of life" => nil ,
158- } ,
159- } ,
157+ "The meaning of life" => nil
158+ }
159+ }
160160 }
161161
162162 example "empty subsubsections with minimal line breaks" ,
@@ -200,26 +200,26 @@ def self.prev_parsed
200200 url : "https://www.theodinproject.com/paths/full-stack-ruby-on-rails/courses/ruby" ,
201201 description : "[Ruby track](https://www.theodinproject.com/paths/full-stack-ruby-on-rails/courses/ruby)" ,
202202 image : "https://example.com/top.png" ,
203- free : true ,
203+ free : true
204204 } ,
205205 {
206206 name : "GoRails - Ruby for Beginners" ,
207207 url : "https://gorails.com/series/ruby-for-beginners" ,
208208 description : "Great if you prefer videos." ,
209209 image : "https://example.com/gorails.png" ,
210- free : true ,
211- } ,
210+ free : true
211+ }
212212 ] ,
213213 "Intermediate" => [
214214 {
215215 name : "Something" ,
216216 url : "http://somethingsomethingsomething.com" ,
217217 description : nil ,
218218 image : "https://example.com/something.png" ,
219- free : false ,
220- } ,
221- ] ,
222- } ,
219+ free : false
220+ }
221+ ]
222+ }
223223 }
224224
225225 example "content under subsections" ,
@@ -249,11 +249,11 @@ def self.prev_parsed
249249 url : "https://www.abcbootcamp.com/tracks/quantum" ,
250250 description : nil ,
251251 image : "https://example.com/quantum.png" ,
252- free : true ,
253- } ,
254- ] ,
255- } ,
256- } ,
252+ free : true
253+ }
254+ ]
255+ }
256+ }
257257 }
258258
259259 example "content under subsubsections" ,
@@ -283,12 +283,12 @@ def self.prev_parsed
283283 url : "https://www.abcbootcamp.com/tracks/quantum" ,
284284 description : nil ,
285285 image : "https://example.com/quantum.png" ,
286- free : true ,
287- } ,
288- ] ,
289- } ,
290- } ,
291- } ,
286+ free : true
287+ }
288+ ]
289+ }
290+ }
291+ }
292292 }
293293
294294 # Test cases generated from the data above.
0 commit comments