mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 20:36:39 +08:00
DEV: Ensure rspec_current_example_location
is actually present before blocking request (#25818)
This commit is contained in:
parent
10c83a80aa
commit
725561cf4b
|
@ -58,7 +58,7 @@ if Rails.env.test?
|
|||
(
|
||||
@@block_requests ||
|
||||
(
|
||||
self.class.current_example_location.present? &&
|
||||
request.cookies[RSPEC_CURRENT_EXAMPLE_COOKIE_STRING].present? &&
|
||||
self.class.current_example_location !=
|
||||
request.cookies[RSPEC_CURRENT_EXAMPLE_COOKIE_STRING]
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user