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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
883c86a5
Commit
883c86a5
authored
Feb 18, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix notification specs
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
64dbcfe2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
app/views/projects/show.html.haml
app/views/projects/show.html.haml
+1
-1
spec/helpers/notifications_helper_spec.rb
spec/helpers/notifications_helper_spec.rb
+3
-3
No files found.
app/views/projects/show.html.haml
View file @
883c86a5
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
%p
%p
%span
.light
Owned by
%span
.light
Owned by
-
if
@project
.
group
-
if
@project
.
group
#{
link_to
@project
.
group
.
name
,
@project
.
group
}
G
roup
#{
link_to
@project
.
group
.
name
,
@project
.
group
}
g
roup
-
else
-
else
#{
link_to
@project
.
owner_name
,
@project
.
owner
}
#{
link_to
@project
.
owner_name
,
@project
.
owner
}
...
...
spec/helpers/notifications_helper_spec.rb
View file @
883c86a5
...
@@ -8,7 +8,7 @@ describe NotificationsHelper do
...
@@ -8,7 +8,7 @@ describe NotificationsHelper do
before
{
notification
.
stub
(
disabled?:
true
)
}
before
{
notification
.
stub
(
disabled?:
true
)
}
it
"has a red icon"
do
it
"has a red icon"
do
notification_icon
(
notification
).
should
match
(
'class="icon-
circle
cred"'
)
notification_icon
(
notification
).
should
match
(
'class="icon-
volume-off
cred"'
)
end
end
end
end
...
@@ -16,7 +16,7 @@ describe NotificationsHelper do
...
@@ -16,7 +16,7 @@ describe NotificationsHelper do
before
{
notification
.
stub
(
participating?:
true
)
}
before
{
notification
.
stub
(
participating?:
true
)
}
it
"has a blue icon"
do
it
"has a blue icon"
do
notification_icon
(
notification
).
should
match
(
'class="icon-
circle
cblue"'
)
notification_icon
(
notification
).
should
match
(
'class="icon-
volume-down
cblue"'
)
end
end
end
end
...
@@ -24,7 +24,7 @@ describe NotificationsHelper do
...
@@ -24,7 +24,7 @@ describe NotificationsHelper do
before
{
notification
.
stub
(
watch?:
true
)
}
before
{
notification
.
stub
(
watch?:
true
)
}
it
"has a green icon"
do
it
"has a green icon"
do
notification_icon
(
notification
).
should
match
(
'class="icon-
circle
cgreen"'
)
notification_icon
(
notification
).
should
match
(
'class="icon-
volume-up
cgreen"'
)
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