Use variables instead of let
This commit is contained in:
parent
0392dffdb6
commit
7f263ca1de
1 changed files with 2 additions and 3 deletions
|
@ -1,11 +1,10 @@
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
||||||
feature 'Toggle Whitespace Changes', js: true, feature: true do
|
feature 'Toggle Whitespace Changes', js: true, feature: true do
|
||||||
let(:merge_request) { create(:merge_request) }
|
|
||||||
let(:project) { merge_request.source_project }
|
|
||||||
|
|
||||||
before do
|
before do
|
||||||
login_as :admin
|
login_as :admin
|
||||||
|
merge_request = create(:merge_request)
|
||||||
|
project = merge_request.source_project
|
||||||
visit diffs_namespace_project_merge_request_path(project.namespace, project, merge_request)
|
visit diffs_namespace_project_merge_request_path(project.namespace, project, merge_request)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue