Ruby on Rails Monday, July 10, 2017

I don't know if this is a Rails, Ruby, or Rspec question.

In a file named spec/spec_helper.rb I have
RSpec.configure do |config|
# The settings below are suggested to provide a good initial experience
# with RSpec, but feel free to customize to your heart's content.
=begin
 # These two settings work together to allow you to limit a spec run
 # to individual examples or groups you care about by tagging them with
 # `:focus` metadata. When nothing is tagged with `:focus`, all examples
 # get run.
 config.filter_run :focus
 config.run_all_when_everything_filtered = true
. . .
 # See https://stackoverflow.com/questions/38421853/why-is-my-rspec-not-loading-devisetestcontrollerhelpers
 config.include Devise::Test::ControllerHelpers, :type => :controller
=end

What does the =begin and =end do?  Is this new Ruby syntax?  Rails preprocessing?  Rspec preprocessing?

No comments:

Post a Comment