1 - RSpec 3¶ ↑
rspec.info/blog/2013/07/the-plan-for-rspec-3/
2 - Debugging¶ ↑
Gemfile:
gem 'byebug'
'debugger' (in source code executed from rspec test)
“No more explicit debugger support”
RSpec has long supported a -d / --debug command line option for enabling the debugger via the ruby-debug gem. We plan to remove the explicit debugger support in RSpec 3. Besides removing the command line option, we'll be removing the monkey patching of debugger in Kernel when ruby-debug is not loaded, so you will get a NoMethodError from debugger when a debugger is not loaded. If you want to continue to load the debugger using a command line option, you can use the require flag (-r), using an option like -rdebugger (if using the 'debugger' gem for ruby 1.9.x)
-
Ruby's Kernel Module: codequizzes.wordpress.com/2014/04/22/rubys-kernel-module/
Ruby 2.x doesn't support 'debugger'
Rails uses 'byebug' (https://github.com/rails/rails/issues/14533)
$ RAILS_ENV=development rspec -rbyebug spec/features/game_spec.rb