-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved notify action outside of secured area. BREAKS TESTS!
- Loading branch information
futurechimp
committed
Jun 11, 2011
1 parent
fdd318e
commit 9faf54b
Showing
5 changed files
with
31 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Mongoaggro.controllers :updates do | ||
|
||
post :notify, :with => :id do | ||
@feed = Feed.find(params[:id]) | ||
@feed.update_feed_items(params[:data]) | ||
"success" | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Helper methods defined here can be accessed in any controller or view in the application | ||
|
||
Mongoaggro.helpers do | ||
# def simple_helper_method | ||
# ... | ||
# end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
require File.expand_path(File.dirname(__FILE__) + '/../../test_config.rb') | ||
|
||
class UpdatesControllerTest < Test::Unit::TestCase | ||
context "UpdatesController" do | ||
setup do | ||
get '/' | ||
end | ||
|
||
should "return hello world text" do | ||
assert_equal "Hello World", last_response.body | ||
end | ||
end | ||
end |