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
204 205 206 207 208 209 210 211 |
# File 'lib/assert2/rjs.rb', line 204 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
338 339 340 |
# File 'lib/assert2/xhtml.rb', line 338 def be_html_with(&block) BeHtmlWith.new(self, &block) end |
#generate_js_to(*args, &block) ⇒ Object
217 218 219 |
# File 'lib/assert2/rjs.rb', line 217 def generate_js_to(*args, &block) send_js_to(*args, &block) end |