Ruby on Rails Tuesday, July 11, 2017

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?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/42aebbd0-5b85-4390-a46b-9f4961316257%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment