Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
0fadb82f9228
Commit
0ff46816
authored
Dec 14, 2012
by
Dmitriy Zaporozhets
Browse files
Fixed event.allowed? with event.proper?
parent
ec72bc68bfbe
Changes
3
Hide whitespace changes
Inline
Side-by-side
app/views/dashboard/index.atom.builder
View file @
0fadb82f
...
...
@@ -7,7 +7,7 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom", "xmlns:media" => "http://sear
xml.updated @events.maximum(:updated_at).strftime("%Y-%m-%dT%H:%M:%SZ") if @events.any?
@events.each do |event|
if event.
allowed
?
if event.
proper
?
event = EventDecorator.decorate(event)
xml.entry do
event_link = event.feed_url
...
...
app/views/groups/show.atom.builder
View file @
0fadb82f
...
...
@@ -7,7 +7,7 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom", "xmlns:media" => "http://sear
xml.updated @events.maximum(:updated_at).strftime("%Y-%m-%dT%H:%M:%SZ") if @events.any?
@events.each do |event|
if event.
allowed
?
if event.
proper
?
event = EventDecorator.decorate(event)
xml.entry do
event_link = event.feed_url
...
...
spec/models/event_spec.rb
View file @
0fadb82f
...
...
@@ -59,7 +59,7 @@
end
it
{
@event
.
push?
.
should
be_true
}
it
{
@event
.
allowed
?
.
should
be_true
}
it
{
@event
.
proper
?
.
should
be_true
}
it
{
@event
.
new_branch?
.
should
be_true
}
it
{
@event
.
tag?
.
should
be_false
}
it
{
@event
.
branch_name
.
should
==
"master"
}
...
...
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