Skip to content

Commit

Permalink
XML extractor doesn't support line numbers :(
Browse files Browse the repository at this point in the history
  • Loading branch information
camertron committed Feb 19, 2015
1 parent efb1967 commit c4a461f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rosette/extractors/xml-extractor.rb
Expand Up @@ -18,7 +18,7 @@ def extract_each_from(xml_content)
end

def supports_line_numbers?
true
false
end

protected
Expand Down
1 change: 0 additions & 1 deletion spec/xml-extractor_spec.rb
Expand Up @@ -21,7 +21,6 @@
expected_phrase = expected_phrases[expected_phrase_index]
expect(expected_phrase).to_not be_nil
expect(expected_phrase['key']).to eq(actual_phrase.key)
# expect(expected_phrase['line_number']).to eq (line_number)
expected_phrases.delete_at(expected_phrase_index)
end

Expand Down

0 comments on commit c4a461f

Please sign in to comment.