Created
May 29, 2014 03:24
-
-
Save apeckham/0d15818dec0ca74ecc5d to your computer and use it in GitHub Desktop.
factory girl sequence for an ip address
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sequence(:ip_address) { |n| IPAddr.new(n, Socket::AF_INET).to_s } | |
# { |n| "10.0.0.#{n}" } caused spec flakiness |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment