Use `find` instead.

This commit is contained in:
Guo Xiang Tan 2017-08-21 22:28:43 +09:00
parent 93fe76fc02
commit e8f19e004e
1 changed files with 1 additions and 1 deletions

View File

@ -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