From 882723a58a86d0540b6f3d8feee793c9d3e4ecc6 Mon Sep 17 00:00:00 2001 From: rgarcia Date: Fri, 15 Sep 2017 16:08:33 +0200 Subject: [PATCH] fixes flaky spec MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds random number to the proposal’s title, to avoid js popup displaying similar proposals --- spec/shared/features/nested_documentable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/shared/features/nested_documentable.rb b/spec/shared/features/nested_documentable.rb index 253deacda..906b2d38f 100644 --- a/spec/shared/features/nested_documentable.rb +++ b/spec/shared/features/nested_documentable.rb @@ -248,7 +248,7 @@ def attach_new_file(documentable_factory_name, index, path) end def fill_new_valid_proposal - fill_in :proposal_title, with: "Proposal title" + fill_in :proposal_title, with: "Proposal title #{rand(9999)}" fill_in :proposal_summary, with: "Proposal summary" fill_in :proposal_question, with: "Proposal question?" check :proposal_terms_of_service