Skip to content

Commit

Permalink
Fix bug in RSS feed. [#64]
Browse files Browse the repository at this point in the history
  • Loading branch information
marnen committed Dec 29, 2011
1 parent ab4be5e commit 950bdd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/controllers/events_controller.rb
Expand Up @@ -63,9 +63,9 @@ def show
def feed
respond_to do |format|
format.rss do
@events = current_objects
@key = params[:key]
params[:from_date] = Date.civil(1, 1, 1)
@key = params[:key]
@events = current_objects
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/events_controller_spec.rb
Expand Up @@ -59,10 +59,10 @@
user = FactoryGirl.create :user
User.stub!(:current_user).and_return(user) # we need this for some of the callbacks on Calendar and Event
@calendar = FactoryGirl.create :calendar
Factory :permission, user: user, calendar: @calendar, role: Factory(:role)
@one = FactoryGirl.create :event, :name => 'Event 1', :calendar => @calendar, :date => Date.civil(2008, 7, 4), :description => 'The first event.', :created_at => 1.week.ago
@two = FactoryGirl.create :event, :name => 'Event 2', :calendar => @calendar, :date => Date.civil(2008, 10, 10), :description => 'The <i>second</i> event.', :created_at => 2.days.ago
@events = [@one, @two]
controller.stub!(:current_objects).and_return(@events)
get :feed, :format => 'rss', :key => user.single_access_token
end

Expand Down

0 comments on commit 950bdd4

Please sign in to comment.