mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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