summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2016-04-07 13:15:28 -0500
committerAlfredo Sumaran <alfredo@gitlab.com>2016-04-26 14:01:40 -0500
commit7f263ca1de525e44bea1f97a22d95ad947848128 (patch)
tree04eade0c51e8056f9d97bff4d7d6201595fcddc3
parent0392dffdb64ff70f299a1f41c6a68c202bfb8068 (diff)
downloadgitlab-ce-7f263ca1de525e44bea1f97a22d95ad947848128.tar.gz
Use variables instead of let
-rw-r--r--spec/features/merge_requests/toggle_whitespace_changes.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/features/merge_requests/toggle_whitespace_changes.rb b/spec/features/merge_requests/toggle_whitespace_changes.rb
index cfae3fa131d..bf4fd5289d1 100644
--- a/spec/features/merge_requests/toggle_whitespace_changes.rb
+++ b/spec/features/merge_requests/toggle_whitespace_changes.rb
@@ -1,11 +1,10 @@
require 'spec_helper'
feature 'Toggle Whitespace Changes', js: true, feature: true do
- let(:merge_request) { create(:merge_request) }
- let(:project) { merge_request.source_project }
-
before do
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)
end