Skip to content

Commit

Permalink
Merge pull request #3926 from hennevogel/bugfix/nokogiri_lines_2.8
Browse files Browse the repository at this point in the history
[ci] Do not test nokogiri validation line numbers
  • Loading branch information
Evan Rolfe committed Oct 2, 2017
2 parents 5bc5f10 + 0fc920e commit da9742a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/test/functional/webui/project_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -363,13 +363,13 @@ def test_save_meta
xml = "<project name='home:adrian'> <title>My Home Project</title </project>"
page.evaluate_script("editors[0].setValue(\"#{xml}\");")
click_button("Save")
find(:id, 'flash-messages').must_have_text("project validation error: 1:60: FATAL: expected '>'")
find(:id, 'flash-messages').must_have_text(/project validation error.*FATAL: expected '>'/)

xml = "<project name='home:adrian'><title>My Home Project</title></project>"
page.evaluate_script("editors[0].setValue(\"#{xml}\");")
click_button("Save")
find(:id, 'flash-messages').
must_have_text("project validation error: 1:0: ERROR: Expecting an element description, got nothing")
must_have_text(/project validation error.*Expecting an element description, got nothing/)

# Trigger data reload and verify that nothing was saved
click_link("Meta")
Expand Down

0 comments on commit da9742a

Please sign in to comment.