Skip to content
Snippets Groups Projects
Verified Commit 3c148586 authored by Rémy Coutable's avatar Rémy Coutable
Browse files

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
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment