Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Working on #14. Added Routes

  • Loading branch information...
commit e7f5972a676473099f1525cadde90ec37936029a 1 parent 5c42edd
@gaffo authored
Showing with 3 additions and 25 deletions.
  1. +3 −0  config/routes.rb
  2. +0 −25 test/integration/admin/users_test.rb
View
3  config/routes.rb
@@ -7,6 +7,9 @@
admin.resources :feeds, :active_scaffold => true
admin.resources :users, :active_scaffold => true
admin.resources :pull, :controller => 'pull'
+ admin.resources :author_feeds, :active_scaffold => true do |af|
+ af.resource :recent
+ end
end
map.resource :admin, :controller => 'admin'
View
25 test/integration/admin/users_test.rb
@@ -1,25 +0,0 @@
-require 'test_helper'
-
-class Admin::UsersTest < ActionController::IntegrationTest
-
- def test_index
- visits admin_users_url
- assert_response :success
- end
-
- # def test_create_feed
- # visits admin_feeds_url
- # clicks_link "Create"
- # assert_response :success
- # fills_in "record[name]", :with => "New Type"
- # fills_in "record[url]", :with => "new_url"
- # fills_in "record[id_xpath]", :with => "//id"
- # fills_in "record[author_xpath]", :with => "//author"
- # fills_in "record[entry_xpath]", :with => "//entry"
- # before = Feed.count
- # clicks_button "Create"
- # assert_response(:success)
- # assert_equal(before + 1, Feed.count)
- # end
-
-end
Please sign in to comment.
Something went wrong with that request. Please try again.