Hash exercises won't run with byebug

I put require 'byebug ’ at the top of the hashes exercises and I get this error:

~/3b6a1428-brittanyzellman-hashes-exercises (master)$ bundle exec rspec

An error occurred while loading ./spec/hashes_spec.rb.
Failure/Error: require 'byebug'

LoadError:
  cannot load such file -- byebug
# ./spec/hashes_spec.rb:3:in `require'
# ./spec/hashes_spec.rb:3:in `<top (required)>'
No examples found.

I tried installing the gem separate from bundle install but I still get this error, anyone know why?
Thanks!

Hello Brittany!

  1. Add “gem “byebug”” to your Gemfile
  2. Add “require ‘byebug’” to your hashes.rb file
  3. run “bundle update”
  4. run “bundle install”
  5. run “bundle exec rspec”
  6. you should be fine

Good luck, and let me know after

Great, all is working now. Thanks!

@bzellman: You’re welcome!

1 Like