Merge pull request #6895 from cmrd-senya/services-spec-fixup
Fix up nodeinfo tests
This commit is contained in:
commit
18fc98d3aa
2 changed files with 3 additions and 3 deletions
|
|
@ -31,7 +31,7 @@ describe NodeInfoPresenter do
|
||||||
},
|
},
|
||||||
"services" => {
|
"services" => {
|
||||||
"inbound" => [],
|
"inbound" => [],
|
||||||
"outbound" => ["facebook"]
|
"outbound" => AppConfig.configured_services.map(&:to_s)
|
||||||
},
|
},
|
||||||
"openRegistrations" => AppConfig.settings.enable_registrations?,
|
"openRegistrations" => AppConfig.settings.enable_registrations?,
|
||||||
"usage" => {
|
"usage" => {
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ describe StatisticsPresenter do
|
||||||
"network" => "Diaspora",
|
"network" => "Diaspora",
|
||||||
"version" => AppConfig.version_string,
|
"version" => AppConfig.version_string,
|
||||||
"registrations_open" => AppConfig.settings.enable_registrations?,
|
"registrations_open" => AppConfig.settings.enable_registrations?,
|
||||||
"services" => ["facebook"]
|
"services" => AppConfig.configured_services.map(&:to_s)
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -104,7 +104,7 @@ describe StatisticsPresenter do
|
||||||
"active_users_monthly" => User.monthly_actives.count,
|
"active_users_monthly" => User.monthly_actives.count,
|
||||||
"local_posts" => @presenter.local_posts,
|
"local_posts" => @presenter.local_posts,
|
||||||
"local_comments" => @presenter.local_comments,
|
"local_comments" => @presenter.local_comments,
|
||||||
"services" => ["facebook"]
|
"services" => AppConfig.configured_services.map(&:to_s)
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue