From 5812779974f7f3842d6b3e21c2b590668a4d4109 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Tue, 9 Apr 2019 22:34:43 +0200 Subject: [PATCH] Fix typo in budget executions spec We were expecting the page not to have content which is actually there. The test passed (most of the time) because before clicking the "Milestones" link the content was not present, and we checked the page content before the AJAX request generated by clicking the link had finished. --- spec/features/budgets/executions_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/features/budgets/executions_spec.rb b/spec/features/budgets/executions_spec.rb index e25dd5a49..32398ce1a 100644 --- a/spec/features/budgets/executions_spec.rb +++ b/spec/features/budgets/executions_spec.rb @@ -53,7 +53,7 @@ feature "Executions" do click_link "See results" click_link "Milestones" - expect(page).not_to have_content("No winner investments in this state") + expect(page).to have_content("No winner investments in this state") select "Executed (0)", from: "status"