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: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Rémy Coutable 2017-04-26 10:42:38 +02:00
parent 3c6fad6429
commit 3c1485868c
No known key found for this signature in database
GPG key ID: 46DF07E5CD9E96AB

View file

@ -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