Sfoglia il codice sorgente

add test for /system route

Christopher Mullins 6 anni fa
parent
commit
2949318a9d
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      test/remote/spec/rest_spec.rb

+ 2 - 0
test/remote/spec/rest_spec.rb

@@ -55,6 +55,8 @@ RSpec.describe 'REST Server' do
         expect { @client.get(page) }.to raise_error(Net::HTTPServerException), "No auth required for page: #{page}"
       end
 
+      expect { @client.post('/system', {}) }.to raise_error(Net::HTTPServerException)
+
       # Clear auth
       @client.set_auth!(@username, @password)
       @client.put('/settings', admin_username: '', admin_password: '')