Class | SeleniumOnRails::Selenese |
In: |
lib/selenium_on_rails/selenese.rb
|
Parent: | Object |
# File lib/selenium_on_rails/selenese.rb, line 11 11: def render template, local_assigns 12: name = (@view.assigns['page_title'] or local_assigns['page_title']) 13: lines = template.strip.split "\n" 14: html = '' 15: html << extract_comments(lines) 16: html << extract_commands(lines, name) 17: html << extract_comments(lines) 18: raise 'You cannot have comments in the middle of commands!' if next_line lines, :any 19: html 20: end