Class: Test::Unit::Assertions::AssertRjs::ALERT

Inherits:
Test::Unit::Assertions::AssertRjs show all
Defined in:
lib/assert2/rjs.rb

Instance Attribute Summary

Attributes inherited from Test::Unit::Assertions::AssertRjs

#command, #failure_message, #js, #scope

Instance Method Summary collapse

Methods inherited from Test::Unit::Assertions::AssertRjs

#assert_xhtml, #complain, #flunk, #initialize, #match, #match_or_flunk, #pwn_call, #wrap_expectation

Constructor Details

This class inherits a constructor from Test::Unit::Assertions::AssertRjs

Instance Method Details

#pwn(*args, &block) ⇒ Object



84
85
86
87
# File 'lib/assert2/rjs.rb', line 84

def pwn *args, &block
  @command = :call
  pwn_call :alert, *args, &block
end