summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-05-18 19:38:52 +0200
committerRobert Speicher <rspeicher@gmail.com>2016-05-29 15:03:00 -0400
commitdbba60029c84fa091350d3a7d8b2e73cfec25f7e (patch)
tree5024609041e64fe4e27899ea3f40214c4aba0b04 /features
parentcc2efcf1a681223d5c74eef6fca73cde71dce7c2 (diff)
downloadgitlab-ce-dbba60029c84fa091350d3a7d8b2e73cfec25f7e.tar.gz
Improve note factory
Diffstat (limited to 'features')
-rw-r--r--features/steps/project/merge_requests.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/features/steps/project/merge_requests.rb b/features/steps/project/merge_requests.rb
index cfa586f859f..b2fa8750234 100644
--- a/features/steps/project/merge_requests.rb
+++ b/features/steps/project/merge_requests.rb
@@ -273,7 +273,7 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps
step 'user "John Doe" leaves a comment like "Line is wrong" on diff' do
mr = MergeRequest.find_by(title: "Bug NS-05")
create(:note_on_merge_request_diff, project: project,
- noteable_id: mr.id,
+ noteable: mr,
author: user_exists("John Doe"),
line_code: sample_commit.line_code,
note: 'Line is wrong')