I want to show each example's description in the Rails log during debugging. I can't quite figure out how this is done. I've looked at using RSpec.configure doing something like this:
RSpec.configure do |config|
config.before(:each) do |example|
Rails.logger.debug example.description
end
end
but that just gives a NoMethodError as it can't find description at that point. I thought it might work like #around does, but I guess not.