mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Use find
instead.
This commit is contained in:
parent
93fe76fc02
commit
e8f19e004e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue