1
0
mirror of https://github.com/cmur2/dyndnsd.git synced 2024-12-22 00:54:22 +01:00

More test

This commit is contained in:
cn 2013-04-27 15:44:19 +02:00
parent c79aea5a9a
commit 027872ded6

View File

@ -129,4 +129,11 @@ describe Dyndnsd::Daemon do
last_response.should be_ok last_response.should be_ok
last_response.body.should == "nochg 1.2.3.4\ngood 1.2.3.4" last_response.body.should == "nochg 1.2.3.4\ngood 1.2.3.4"
end 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 end