trabajo-afectivo/spec/support/script_helper.rb

14 lines
409 B
Ruby
Raw Permalink Normal View History

2022-01-01 13:38:12 +00:00
# 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