trabajo-afectivo/spec/support/script_helper.rb
2022-01-01 14:38:12 +01:00

13 lines
409 B
Ruby

# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
module ScriptHelper
def has_ipv6?
File.exist?('/proc/net/if_inet6') && system('ip -6 addr | grep ::1')
end
end
RSpec.configure do |config|
# #extend adds setup methods for example groups (#describe / #context);
# #include adds methods within actual examples (#it blocks)
config.extend ScriptHelper, type: :script
end