Module: Hurley::Test::Integration
- Defined in:
- lib/hurley/test/integration.rb
Defined Under Namespace
Modules: Common, Compression, SSL
Classes: GenericIO
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.live_endpoint ⇒ Object
8
9
10
|
# File 'lib/hurley/test/integration.rb', line 8
def live_endpoint
@live_endpoint ||= ENV["HURLEY_LIVE"].to_s
end
|
.ssl_file ⇒ Object
12
13
14
|
# File 'lib/hurley/test/integration.rb', line 12
def ssl_file
@ssl_file ||= ENV["HURLEY_SSL_FILE"].to_s
end
|
Class Method Details
.apply(base, *extra_features) ⇒ Object
21
22
23
24
25
26
27
|
# File 'lib/hurley/test/integration.rb', line 21
def self.apply(base, *)
features = [:Common, *]
features << :SSL if Integration.ssl?
features.each do |name|
base.send(:include, const_get(name))
end
end
|
.ssl? ⇒ Boolean
16
17
18
|
# File 'lib/hurley/test/integration.rb', line 16
def ssl?
live_endpoint.start_with?(Hurley::HTTPS)
end
|