From a787b92f18bde0bac40c2d10b16dab3d5f6e2107 Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Tue, 16 Aug 2016 07:17:41 -0700 Subject: Prefer `find(:xpath, ...)` to `expect(...).to have_xpath` --- spec/features/merge_requests/diff_notes_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/features/merge_requests/diff_notes_spec.rb b/spec/features/merge_requests/diff_notes_spec.rb index 78760e4afc5..daf629ee04d 100644 --- a/spec/features/merge_requests/diff_notes_spec.rb +++ b/spec/features/merge_requests/diff_notes_spec.rb @@ -141,7 +141,7 @@ feature 'Diff notes', js: true, feature: true do def comment_on_line(line_holder, line) line[:num].find(comment_button_class).trigger 'click' - expect(line_holder).to have_xpath notes_holder_input_xpath + line_holder.find(:xpath, notes_holder_input_xpath) notes_holder_input = line_holder.find(:xpath, notes_holder_input_xpath) expect(notes_holder_input[:class]).to include(notes_holder_input_class) -- cgit v1.2.1