diff options
author | Benjamin Neff <benjamin@coding4coffee.ch> | 2022-08-01 00:10:38 +0300 |
---|---|---|
committer | Benjamin Neff <benjamin@coding4coffee.ch> | 2022-08-01 00:12:00 +0300 |
commit | 9485a0263985a5c2a41446e020e02c2accabc2bb (patch) | |
tree | 01bf7a345b4cc80009586c8832ff2a5fdb905a8a /spec/controllers/node_info_controller_spec.rb | |
parent | 02eba842aed40e6411fbed8db9e32fcd0e59c642 (diff) | |
parent | eaedd3d26ca7e993e42fba02bc4e4fc5e72ae73e (diff) |
Merge branch 'next-minor'v0.7.18.0
Diffstat (limited to 'spec/controllers/node_info_controller_spec.rb')
-rw-r--r-- | spec/controllers/node_info_controller_spec.rb | 7 |
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 |