In a file named spec/spec_helper.rb I see
See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
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
. . .
rspec-mocks config goes here. You can use an alternate test double
library (such as bogus or mocha) by changing the mock_with
option here.
config.mock_with :rspec do |mocks| # Enable only the newer, non-monkey-patching expect syntax. # For more details, see: # - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/ mocks.syntax = :expect
# Prevents you from mocking or stubbing a method that does not exist on
# a real object. This is generally recommended.
mocks.verify_partial_doubles = true
end
=end end
``
What does the =begin/=end do?