Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/controllers/node_info_controller_spec.rb')
-rw-r--r--spec/controllers/node_info_controller_spec.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/controllers/node_info_controller_spec.rb b/spec/controllers/node_info_controller_spec.rb
index ba3c10738..5c2925cbb 100644
--- a/spec/controllers/node_info_controller_spec.rb
+++ b/spec/controllers/node_info_controller_spec.rb
@@ -20,6 +20,9 @@ describe NodeInfoController do
}, {
"rel" => "http://nodeinfo.diaspora.software/ns/schema/2.0",
"href" => node_info_url("2.0")
+ }, {
+ "rel" => "http://nodeinfo.diaspora.software/ns/schema/2.1",
+ "href" => node_info_url("2.1")
}]
end
end
@@ -33,7 +36,7 @@ describe NodeInfoController do
end
end
- %w(1.0 2.0).each do |version|
+ %w[1.0 2.0 2.1].each do |version|
context "version #{version}" do
it "responds to JSON" do
get :document, params: {version: version}, format: :json
@@ -52,7 +55,7 @@ describe NodeInfoController do
get :document, params: {version: version}, format: :json
expect(response.content_type)
- .to eq("application/json; profile=http://nodeinfo.diaspora.software/ns/schema/#{version}#")
+ .to eq("application/json; profile=http://nodeinfo.diaspora.software/ns/schema/#{version}#; charset=utf-8")
end
end
end