In this exercise, you will explore the mythology of the legendary Phoenix, Bennu, as he follows each pharaoh throughout multiple kingdoms: Narmer the Unifier, Khufu the Builder, and Tutankhamun the Child.
As you work through this exercise, you will gain a deeper understanding of Ruby programming and Test-Driven Development (TDD) while immersing yourself in the rich culture of one of the world's most intriguing civilizations. Inspired by the mythical_creatures collection of exercises created by the Turing School of Software & Design, this is a great way to expand your skills and learn about the ancient world!
- Fork this repo and clone YOUR fork to your local computer.
- Click the
Fork
button in Github, then click onCreate Fork
- Click the
Copy
button & ensureSSH
is highlighted, then copy the code provided. - Move into the directory you want this directory to live:
cd name_of_directory
- Paste the code from GitHub into your Terminal command line, it should look like:
- Click the
git clone git@github.com:MelTravelz/phoenix_mythical_creature.git
-
Move into this directory by typing in the Terminal command line:
cd phoenix_mythical_creature
-
Open in VScode:
code .
-
Install the bundler gem:
gem install bundler
&bundle install
-
To run your first test:
rspec spec/phoenix_spec.rb
-
Create a class for the Phoenix first. The file has already been created in the
lib
directory. -
Continue to follow the errors that your test provides until the test passes.
-
Then, unskip the next test by removing the
x
before the next "it statment" (aka test). -
Continue until all tests pass for the
phoenix_spec.rb
and then continue on to thepharaoh_spec.rb
. -
If you have questions or would like to see possible answers, you can check out the answers branch. In the Terminal command like:
git checkout answers_branch
- Please do not make any changes to these files.
- To return to your work, in Terminal type:
git checkout main