Instantly share code, notes, and snippets.

Embed
What would you like to do?
factory girl sequence for an ip address
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