Class: Test::Unit::Assertions::AssertRjs::INSERT_HTML
- Inherits:
-
Test::Unit::Assertions::AssertRjs
- Object
- Test::Unit::Assertions::AssertRjs
- Test::Unit::Assertions::AssertRjs::INSERT_HTML
- 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, #hash_match, #initialize, #match, #match_or_flunk, #props_to_hash, #pwn_call, #wrap_expectation
Constructor Details
This class inherits a constructor from Test::Unit::Assertions::AssertRjs
Instance Method Details
#pwn(*args, &block) ⇒ Object
145 146 147 148 149 |
# File 'lib/assert2/rjs.rb', line 145 def pwn *args, &block @command = :call location, id, html = args pwn_call 'Element.insert', id, { location.to_sym => html }, &block end |