Skip to content

Commit

Permalink
Fix a few more broken links to RSS feed. [#62]
Browse files Browse the repository at this point in the history
  • Loading branch information
marnen committed Sep 23, 2011
1 parent 6950cb3 commit adba0a0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/helpers/events_helper.rb
Expand Up @@ -120,7 +120,7 @@ def markdown_hint
# Generates an RSS URL for the current user's events feed.
def rss_url
if User.current_user
feed_events_url(:fmt => :rss, :key => User.current_user.single_access_token)
feed_events_url(:format => :rss, :key => User.current_user.single_access_token)
else
nil
end
Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/events_controller_spec.rb
Expand Up @@ -148,7 +148,7 @@

it "should not list any events if given an invalid single_access_token" do
User.stub!(:find_by_single_access_token).and_return(nil)
get :feed, :fmt => 'rss', :key => 'fake key'
get :feed, :format => 'rss', :key => 'fake key'
Event.should_not_receive(:find)
response.should_not have_selector('item')
end
Expand Down
2 changes: 1 addition & 1 deletion spec/helpers/events_helper_spec.rb
Expand Up @@ -178,7 +178,7 @@
it "should return the RSS feed URL for the current user" do
user = FactoryGirl.create :user
User.current_user = user
helper.rss_url.should == feed_events_url(:fmt => :rss, :key => user.single_access_token)
helper.rss_url.should == feed_events_url(:format => :rss, :key => user.single_access_token)
end

it "should return nil if there is no current user" do
Expand Down

0 comments on commit adba0a0

Please sign in to comment.