class UserControllerTest < ActionController::TestCase
api_fixtures
- fixtures :messages
+
+ setup do
+ stub_request(:get, "http://api.hostip.info/country.php?ip=0.0.0.0")
+ end
##
# test all routes which lead to this controller
end
def test_api_details
+ create(:message, :read, :recipient => users(:normal_user))
+
# check that nothing is returned when not logged in
get :api_details
assert_response :unauthorized