Module: Spec::Matchers
- Defined in:
- lib/assert2/rjs.rb,
lib/assert2/xhtml.rb
Defined Under Namespace
Classes: SendJsTo
Instance Method Summary collapse
- #__interpret_rjs(response, command, *args, &block) ⇒ Object
- #be_html_with(&block) ⇒ Object
- #generate_js_to(*args, &block) ⇒ Object
-
#send_js_to(*args, &block) ⇒ Object
ERGO further merging!.
Instance Method Details
#__interpret_rjs(response, command, *args, &block) ⇒ Object
185 186 187 188 189 190 191 192 |
# File 'lib/assert2/rjs.rb', line 185 def __interpret_rjs(response, command, *args, &block) klass = command.to_s.upcase klass = eval("Test::Unit::Assertions::AssertRjs::#{klass}") rescue flunk("#{command} not implemented!") asserter = klass.new(response, command, self) sample = asserter.pwn(*args, &block) return sample, asserter end |
#be_html_with(&block) ⇒ Object
334 335 336 |
# File 'lib/assert2/xhtml.rb', line 334 def be_html_with(&block) BeHtmlWith.new(self, &block) end |
#generate_js_to(*args, &block) ⇒ Object
198 199 200 |
# File 'lib/assert2/rjs.rb', line 198 def generate_js_to(*args, &block) send_js_to(*args, &block) end |