it "should fail authentication" do
get '/services/order/43439', {}, 'REMOTE_ADDR' => '192.168.9.873'
last_response.status.should == 401
attributes = Hash.from_xml(last_response.body)
attributes["errors"]["error"].should == "You are not authorised"
end
Where 192.168.9.873 is not in the whitelist
No comments:
Post a Comment