languages | tags | resources |
---|---|---|
ruby |
assessment |
0 |
Run bundle install
to install all dependencies.
Run rspec spec/level_x_spec.rb
where x is the level you want to run. Start with Level 1.
If you'd like to start the test a particular line number, you can run rspec spec/level_1_spec.rb:18
. This will execute the test in the level one spec that starts on line 18 and goes to line 22.
Run rake spec
to run all of the tests when you are done. Running it before you finish will prevent all tests from running.
To pass these levels add code with the tests. For most cases, put your code before the expectations, execpt for the tests that have expect(STDOUT).to receive(:puts)
. Your code should go AFTER those expectations.
You will have to put your code separate files that should be loaded. Add your methods for level 4 in the file located in the lib
directory, named level4.rb
.