Selaa lähdekoodia

add test for /system route

Christopher Mullins 6 vuotta sitten
vanhempi
commit
2949318a9d
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  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: '')