Ensure you have the 'bundle' gem by running the command 'gem install bundle'. Then run the command 'bundle' in the project directory to ensure you have all the gems you need for this.
Reopen the Array class or subclass it.
Rewrite the inject method. Write a test for it first. Don't worry about returning an enumerator, assume a block is always given
Name your method differently (that is, not inject() or subclass Array) because rspec uses inject() internally, so the tests will fail with weird messages unless your implementation of inject is perfect.
If you would like a challenge, rewrite inject using two approaches: using iterators and using recursion but itβs not required to pass.