Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 59b568a

Browse files
committed
Adjust docs to be in line with RSpec 4
1 parent d10afaa commit 59b568a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

features/formatters/custom_formatter.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Feature: custom formatters
1313
"""ruby
1414
class CustomFormatter
1515
# This registers the notifications this formatter supports, and tells
16-
# us that this was written against the RSpec 3.x formatter API.
16+
# us that this was written against the RSpec 4.x formatter API.
1717
RSpec::Core::Formatters.register self, :example_started
1818
1919
def initialize(output)

lib/rspec/core/formatters.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def add(formatter_to_use, *paths)
164164

165165
RSpec.warn_deprecation <<-WARNING.gsub(/\s*\|/, ' ')
166166
|The #{formatter_class} formatter uses the deprecated formatter
167-
|interface not supported directly by RSpec 3.
167+
|interface not supported directly by RSpec 4.
168168
|
169169
|To continue to use this formatter you must install the
170170
|`rspec-legacy_formatters` gem, which provides support

lib/rspec/core/project_initializer/spec/spec_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
# library (such as bogus or mocha) by changing the `mock_with` option here.
2828
config.mock_with :rspec do |mocks|
2929
# Prevents you from mocking or stubbing a method that does not exist on
30-
# a real object. This is generally recommended, and will default to
31-
# `true` in RSpec 4.
30+
# a real object. This is generally recommended, and is the default since
31+
# RSpec 4.
3232
mocks.verify_partial_doubles = true
3333
end
3434

0 commit comments

Comments
 (0)