summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-04-26 10:42:38 +0200
committerRémy Coutable <remy@rymai.me>2017-04-26 10:42:38 +0200
commit3c1485868c3baee874f65f974d1b0f3b70f71605 (patch)
tree578d936d8b1ed270b4fb393d98a29fb213635dec /features
parent3c6fad64296738239582ad449bb202cfd99ba7ff (diff)
downloadgitlab-ce-3c1485868c3baee874f65f974d1b0f3b70f71605.tar.gz
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>
Diffstat (limited to 'features')
-rw-r--r--features/steps/project/merge_requests.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/features/steps/project/merge_requests.rb b/features/steps/project/merge_requests.rb
index 3985fe8f2f7..a06b2f2911f 100644
--- a/features/steps/project/merge_requests.rb
+++ b/features/steps/project/merge_requests.rb
@@ -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