Commit 3c148586 authored by Rémy Coutable's avatar Rémy Coutable

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: default avatarRémy Coutable <remy@rymai.me>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment