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

Commit b6cac5e

Browse files
committed
Remove monkey patching scenarios (preamble for #2803)
1 parent 46292a3 commit b6cac5e

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

features/configuration/zero_monkey_patching_mode.feature

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -64,28 +64,6 @@ Feature: Zero monkey patching mode
6464
end
6565
"""
6666

67-
Scenario: By default RSpec allows monkey patching
68-
Given a file named "spec/spec_helper.rb" with:
69-
"""ruby
70-
# Empty spec_helper
71-
"""
72-
When I run `rspec`
73-
Then the examples should all pass
74-
75-
Scenario: Monkey patched methods are undefined with `disable_monkey_patching!`
76-
Given a file named "spec/spec_helper.rb" with:
77-
"""ruby
78-
RSpec.configure do |config|
79-
config.disable_monkey_patching!
80-
end
81-
"""
82-
When I run `rspec spec/example_should_spec.rb`
83-
Then the output should contain all of these:
84-
| undefined method `should' |
85-
| unexpected message :stub |
86-
When I run `rspec spec/example_describe_spec.rb`
87-
Then the output should contain "undefined method `describe'"
88-
8967
Scenario: `allow` and `expect` syntax works with monkey patching
9068
Given a file named "spec/spec_helper.rb" with:
9169
"""ruby

0 commit comments

Comments
 (0)