module Hurley::Test::Integration
Attributes
live_endpoint[W]
ssl_file[W]
Public Class Methods
apply(base, *extra_features)
click to toggle source
# File lib/hurley/test/integration.rb, line 21 def self.apply(base, *extra_features) features = [:Common, *extra_features] features << :SSL if Integration.ssl? features.each do |name| base.send(:include, const_get(name)) end end
live_endpoint()
click to toggle source
# File lib/hurley/test/integration.rb, line 8 def live_endpoint @live_endpoint ||= ENV["HURLEY_LIVE"].to_s end
ssl?()
click to toggle source
# File lib/hurley/test/integration.rb, line 16 def ssl? live_endpoint.start_with?(Hurley::HTTPS) end
ssl_file()
click to toggle source
# File lib/hurley/test/integration.rb, line 12 def ssl_file @ssl_file ||= ENV["HURLEY_SSL_FILE"].to_s end