More test

This commit is contained in:
cn 2013-04-27 15:44:19 +02:00
parent c79aea5a9a
commit 027872ded6
1 changed files with 7 additions and 0 deletions

View File

@ -129,4 +129,11 @@ describe Dyndnsd::Daemon do
last_response.should be_ok
last_response.body.should == "nochg 1.2.3.4\ngood 1.2.3.4"
end
it 'uses clients remote address if myip not specified' do
authorize 'test', 'secret'
get '/nic/update?hostname=foo.example.org'
last_response.should be_ok
last_response.body.should == 'good 127.0.0.1'
end
end