Fix up nodeinfo tests

Tests for nodeinfo failed if services config are non-default. Fix it
to pick the data for comparation from application settings.
This commit is contained in:
cmrd Senya 2016-06-27 22:54:01 +03:00
parent 54026f4a63
commit 27ae4ff4fd
No known key found for this signature in database
GPG key ID: 5FCC5BA680E67BFE
2 changed files with 3 additions and 3 deletions

View file

@ -31,7 +31,7 @@ describe NodeInfoPresenter do
},
"services" => {
"inbound" => [],
"outbound" => ["facebook"]
"outbound" => AppConfig.configured_services.map(&:to_s)
},
"openRegistrations" => AppConfig.settings.enable_registrations?,
"usage" => {

View file

@ -25,7 +25,7 @@ describe StatisticsPresenter do
"network" => "Diaspora",
"version" => AppConfig.version_string,
"registrations_open" => AppConfig.settings.enable_registrations?,
"services" => ["facebook"]
"services" => AppConfig.configured_services.map(&:to_s)
)
end
@ -104,7 +104,7 @@ describe StatisticsPresenter do
"active_users_monthly" => User.monthly_actives.count,
"local_posts" => @presenter.local_posts,
"local_comments" => @presenter.local_comments,
"services" => ["facebook"]
"services" => AppConfig.configured_services.map(&:to_s)
)
end
end