This repository was archived by the owner on Nov 30, 2024. It is now read-only.
File tree 3 files changed +7
-8
lines changed
3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ Feature: Excluding lines from the backtrace
119
119
"""
120
120
When I run `rspec --backtrace`
121
121
Then the output should contain "1 example, 1 failure"
122
- And the output should contain " spec/support/custom_helper.rb:2:in ` assert_baz'"
122
+ And the output should contain %R{ spec/support/custom_helper.rb:2:in ('Object#|`) assert_baz'}
123
123
And the output should contain "lib/rspec/expectations"
124
124
And the output should contain "lib/rspec/core"
125
125
@@ -150,5 +150,5 @@ Feature: Excluding lines from the backtrace
150
150
config.filter_gems_from_backtrace "my_gem"
151
151
end
152
152
"""
153
- Then the output from `rspec` should contain " vendor/my_gem-1.2.3/lib/my_gem.rb:4:in ` do_amazing_things!'"
154
- But the output from `rspec --require spec_helper` should not contain " vendor/my_gem-1.2.3/lib/my_gem.rb:4:in ` do_amazing_things!'"
153
+ Then the output from `rspec` should contain %R{ vendor/my_gem-1.2.3/lib/my_gem.rb:4:in (`|'MyGem\.) do_amazing_things!'}
154
+ But the output from `rspec --require spec_helper` should not contain %R{ vendor/my_gem-1.2.3/lib/my_gem.rb:4:in (`|'MyGem\.) do_amazing_things!'}
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ Feature: Global namespace DSL
59
59
end
60
60
"""
61
61
When I run `rspec`
62
- Then the output should contain " undefined method ` describe'"
62
+ Then the output should contain %R{ undefined method (`| ') describe'}
63
63
64
64
Scenario : Regardless of setting
65
65
Given a file named "spec/example_spec.rb" with:
Original file line number Diff line number Diff line change @@ -80,11 +80,10 @@ Feature: Zero monkey patching mode
80
80
end
81
81
"""
82
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 |
83
+ Then the output should contain %R{undefined method (`|')should' }
84
+ And the output should contain "unexpected message :stub"
86
85
When I run `rspec spec/example_describe_spec.rb`
87
- Then the output should contain " undefined method ` describe'"
86
+ Then the output should contain %R{ undefined method (`| ') describe'}
88
87
89
88
Scenario : `allow` and `expect` syntax works with monkey patching
90
89
Given a file named "spec/spec_helper.rb" with:
You can’t perform that action at this time.
0 commit comments