mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Use find
instead.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user