Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
3ff708f7
Commit
3ff708f7
authored
Apr 04, 2017
by
Douwe Maan
Committed by
Luke "Jared" Bennett
Apr 05, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused code
parent
63c7801e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
18 deletions
+0
-18
spec/mailers/previews/notify_preview.rb
spec/mailers/previews/notify_preview.rb
+0
-18
No files found.
spec/mailers/previews/notify_preview.rb
View file @
3ff708f7
...
...
@@ -64,32 +64,14 @@ class NotifyPreview < ActionMailer::Preview
@project
||=
Project
.
find_by_full_path
(
'gitlab-org/gitlab-test'
)
end
def
issue
@issue
||=
project
.
issues
.
last
end
def
merge_request
@merge_request
||=
project
.
merge_requests
.
find_by
(
source_branch:
'master'
,
target_branch:
'feature'
)
end
def
commit
@commit
||=
project
.
commit
(
'570e7b2abdd848b95f2f578043fc23bd6f6fd24d'
)
end
def
user
@user
||=
User
.
last
end
def
note_body
<<-
MD
.
strip_heredoc
Hello :smiley:
We expect a blank line between:
- The heading ("Adminstrator started...")
- The diff
MD
end
def
create_note
(
params
)
Notes
::
CreateService
.
new
(
project
,
user
,
params
).
execute
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment