Fixed event.allowed? with event.proper?

This commit is contained in:
Dmitriy Zaporozhets 2012-12-14 21:54:49 +02:00
parent f03dc8716d
commit 0ff468160e
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -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" }