These tests will be most easily accomplished by leveraging the Enumerable and Array methods provided by Ruby.
- Install the Ruby language.
- Clone this repository to your computer.
- Run
bundle install
.
There are three tests to complete: test_one.rb
, test_two.rb
, and test_three.rb
. Each file contains instructions on how the test should be completed.
There are RSpec testing scripts for each of the three tests. The tests can be run individually or all together.
To run the tests individually:
bundle exec rspec spec/test_one_spec.rb
bundle exec rspec spec/test_two_spec.rb
bundle exec rspec spec/test_three_spec.rb
To run all the tests at once:
bundle exec rspec spec/
An interactive ruby console can be opened in a terminal by running:
bundle exec pry
Once the prompt is available, the test code needs to be loaded by running:
require './lib/ruby_test'