BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
a7bdf87f
Commit
a7bdf87f
authored
Mar 04, 2014
by
Philip Blatter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added some tests.
parent
11bedfe3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
notify_spec.rb
spec/mailers/notify_spec.rb
+20
-0
No files found.
spec/mailers/notify_spec.rb
View file @
a7bdf87f
...
@@ -161,6 +161,10 @@ describe Notify do
...
@@ -161,6 +161,10 @@ describe Notify do
it
'contains a link to the new issue'
do
it
'contains a link to the new issue'
do
should
have_body_text
/
#{
project_issue_path
project
,
issue
}
/
should
have_body_text
/
#{
project_issue_path
project
,
issue
}
/
end
end
it
'has the correct message-id set'
do
should
have_header
'Message-ID'
,
"<issue_
#{
issue
.
id
}
@
#{
Gitlab
.
config
.
gitlab
.
host
}
>"
end
end
end
describe
'that are new with a description'
do
describe
'that are new with a description'
do
...
@@ -197,6 +201,10 @@ describe Notify do
...
@@ -197,6 +201,10 @@ describe Notify do
it
'contains a link to the issue'
do
it
'contains a link to the issue'
do
should
have_body_text
/
#{
project_issue_path
project
,
issue
}
/
should
have_body_text
/
#{
project_issue_path
project
,
issue
}
/
end
end
it
'has the correct reference set'
do
should
have_header
'References'
,
"<issue_
#{
issue
.
id
}
@
#{
Gitlab
.
config
.
gitlab
.
host
}
>"
end
end
end
describe
'status changed'
do
describe
'status changed'
do
...
@@ -224,6 +232,10 @@ describe Notify do
...
@@ -224,6 +232,10 @@ describe Notify do
it
'contains a link to the issue'
do
it
'contains a link to the issue'
do
should
have_body_text
/
#{
project_issue_path
project
,
issue
}
/
should
have_body_text
/
#{
project_issue_path
project
,
issue
}
/
end
end
it
'has the correct reference set'
do
should
have_header
'References'
,
"<issue_
#{
issue
.
id
}
@
#{
Gitlab
.
config
.
gitlab
.
host
}
>"
end
end
end
end
end
...
@@ -253,6 +265,10 @@ describe Notify do
...
@@ -253,6 +265,10 @@ describe Notify do
it
'contains the target branch for the merge request'
do
it
'contains the target branch for the merge request'
do
should
have_body_text
/
#{
merge_request
.
target_branch
}
/
should
have_body_text
/
#{
merge_request
.
target_branch
}
/
end
end
it
'has the correct message-id set'
do
should
have_header
'Message-ID'
,
"<merge_request_
#{
merge_request
.
id
}
@
#{
Gitlab
.
config
.
gitlab
.
host
}
>"
end
end
end
describe
'that are new with a description'
do
describe
'that are new with a description'
do
...
@@ -313,6 +329,10 @@ describe Notify do
...
@@ -313,6 +329,10 @@ describe Notify do
it
'contains a link to the merge request'
do
it
'contains a link to the merge request'
do
should
have_body_text
/
#{
project_merge_request_path
project
,
merge_request
}
/
should
have_body_text
/
#{
project_merge_request_path
project
,
merge_request
}
/
end
end
it
'has the correct reference set'
do
should
have_header
'References'
,
"<merge_request_
#{
merge_request
.
id
}
@
#{
Gitlab
.
config
.
gitlab
.
host
}
>"
end
end
end
end
end
end
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