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

Commit 66edf8c

Browse files
committed
Make expectations more exact
1 parent 0f2422e commit 66edf8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/rspec/core/formatters/base_text_formatter_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,15 +201,15 @@ def run_all_and_dump_failures
201201
it "does not show the error class" do
202202
group.example("example name") { expect("this").to eq("that") }
203203
run_all_and_dump_failures
204-
expect(formatter_output.string).not_to match(/RSpec/m)
204+
expect(formatter_output.string).not_to match(/RSpec::/m)
205205
end
206206
end
207207

208208
context "with a failed message expectation (rspec-mocks)" do
209209
it "does not show the error class" do
210210
group.example("example name") { expect("this").to receive("that") }
211211
run_all_and_dump_failures
212-
expect(formatter_output.string).not_to match(/RSpec/m)
212+
expect(formatter_output.string).not_to match(/RSpec::/m)
213213
end
214214
end
215215

0 commit comments

Comments
 (0)