Class: Faraday::TestCase

Inherits:
MiniTest::Test
  • Object
show all
Extended by:
LiveServerConfig
Defined in:
test/helper.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from LiveServerConfig

live_server, live_server=, live_server?

Class Method Details

.jruby?Boolean

Returns:

  • (Boolean)

69
70
71
# File 'test/helper.rb', line 69

def self.jruby?
  defined? RUBY_ENGINE and 'jruby' == RUBY_ENGINE
end

.rbx?Boolean

Returns:

  • (Boolean)

73
74
75
# File 'test/helper.rb', line 73

def self.rbx?
  defined? RUBY_ENGINE and 'rbx' == RUBY_ENGINE
end

.ssl_mode?Boolean

Returns:

  • (Boolean)

77
78
79
# File 'test/helper.rb', line 77

def self.ssl_mode?
  ENV['SSL'] == 'yes'
end

Instance Method Details

#capture_warningsObject


59
60
61
62
63
64
65
66
67
# File 'test/helper.rb', line 59

def capture_warnings
  old, $stderr = $stderr, StringIO.new
  begin
    yield
    $stderr.string
  ensure
    $stderr = old
  end
end

#test_defaultObject


55
56
57
# File 'test/helper.rb', line 55

def test_default
  assert true
end