2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-07 12:02:53 +08:00

Use find instead.

This commit is contained in:
Guo Xiang Tan 2017-08-21 22:28:43 +09:00
parent 93fe76fc02
commit e8f19e004e

View file

@ -108,7 +108,7 @@ describe Discourse do
yield yield
end end
messages.first { |m| m.channel == Discourse.readonly_channel } messages.find { |m| m.channel == Discourse.readonly_channel }
end end
describe ".enable_readonly_mode" do describe ".enable_readonly_mode" do