Don't expect underlying DB data to be updated in feature spec

Only assert that the page shows something, this waits for requests
to be completed.
Signed-off-by: NRémy Coutable <remy@rymai.me>
上级 3c6fad64
......@@ -48,8 +48,7 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps
end
step 'I should see closed merge request "Bug NS-04"' do
merge_request = MergeRequest.find_by!(title: "Bug NS-04")
expect(merge_request).to be_closed
expect(page).to have_content "Bug NS-04"
expect(page).to have_content "Closed by"
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册