mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 12:17:12 +00:00
Use find
instead.
This commit is contained in:
parent
93fe76fc02
commit
e8f19e004e
@ -108,7 +108,7 @@ describe Discourse do
|
||||
yield
|
||||
end
|
||||
|
||||
messages.first { |m| m.channel == Discourse.readonly_channel }
|
||||
messages.find { |m| m.channel == Discourse.readonly_channel }
|
||||
end
|
||||
|
||||
describe ".enable_readonly_mode" do
|
||||
|
Loading…
x
Reference in New Issue
Block a user