Skip to content

Commit

Permalink
[ci] Do not test nokogiri validation line numbers
Browse files Browse the repository at this point in the history
They change depending on the nokogiri version, input and moon phase...
  • Loading branch information
hennevogel committed Sep 29, 2017
1 parent 5bc5f10 commit 0fc920e
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 0fc920e

Please sign in to comment.