Module: Cargobull::TestHelper
- Defined in:
- lib/cargobull/test_helper.rb
Instance Method Summary collapse
Instance Method Details
#assert_nothing_raised ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'lib/cargobull/test_helper.rb', line 26 def assert_nothing_raised begin yield assert true rescue assert false end end |
#assert_raise(except_klass) ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/cargobull/test_helper.rb', line 16 def assert_raise(except_klass) begin yield rescue except_klass assert true return end assert false end |
#response ⇒ Object
5 6 7 |
# File 'lib/cargobull/test_helper.rb', line 5 def response return @response || "" end |