Method: Fat::StandardAnnotationFixture#output
- Defined in:
- lib/fat/standard_annotation_fixture.rb
#output ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/fat/standard_annotation_fixture.rb', line 18 def output parse = Fit::Parse.new @original_html, ['td'] testbed = Fit::Fixture.new case @annotation when 'right' then testbed.right(parse) when 'wrong' then testbed.wrong(parse, @text) when 'error' then testbed.error(parse, @text) when 'info' then testbed.info(parse, @text) when 'ignore' then testbed.ignore(parse) else return "unknown type: #@type" end generate_output parse end |