turingschool-examples / ruby-exercises

A collection of exercises to practice various aspects of Ruby
MIT License
237 stars 766 forks source link

Capitalization error in `problem-solving/spec/mad_lib_spec.rb` on lines 6 and 19 #126

Closed brandenge closed 1 year ago

brandenge commented 1 year ago

In problem-solving/spec/mad_lib_spec.rb on lines 6 and 19: the l in Madlib needs to be capitalized to match the declared constant MadLib on line 3. Or alternatively, change the capitalization of MadLib on line 3 to a lowercase 'l` to match lines 6 and 19.

Otherwise, you get the following error:

NameError:
  uninitialized constant MadLib
  Did you mean?  Madlib
epintozzi commented 1 year ago

Because the file being required on line 1 is mad_lib, we'll update this on lines 6 and 19 to MadLib. Ruby convention for filing naming is snake case (words are separated with an underscore), and class names are pascal case (first letter of each word capitalized).