Skip to content
Snippets Groups Projects
Commit 0ff46816 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fixed event.allowed? with event.proper?

parent f03dc871
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
Loading
Loading
@@ -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
Loading
Loading
Loading
Loading
@@ -59,7 +59,7 @@ describe Event do
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" }
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment