Skip to content

Instantly share code, notes, and snippets.

@dschneider
Created June 16, 2012 17:16
Show Gist options
  • Save dschneider/2941990 to your computer and use it in GitHub Desktop.
Save dschneider/2941990 to your computer and use it in GitHub Desktop.
RSpec - Request with remote IP
xhr :post, PATH, DATA, "REMOTE_ADDR" => "192.168.0.1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment