Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Working on #14. Added Routes

  • Loading branch information...
commit e7f5972a676473099f1525cadde90ec37936029a 1 parent 5c42edd
Mike Gaffney authored

Showing 2 changed files with 3 additions and 25 deletions. Show diff stats Hide diff stats

  1. +3 0  config/routes.rb
  2. +0 25 test/integration/admin/users_test.rb
3  config/routes.rb
@@ -7,6 +7,9 @@
7 7 admin.resources :feeds, :active_scaffold => true
8 8 admin.resources :users, :active_scaffold => true
9 9 admin.resources :pull, :controller => 'pull'
  10 + admin.resources :author_feeds, :active_scaffold => true do |af|
  11 + af.resource :recent
  12 + end
10 13 end
11 14
12 15 map.resource :admin, :controller => 'admin'
25 test/integration/admin/users_test.rb
... ... @@ -1,25 +0,0 @@
1   -require 'test_helper'
2   -
3   -class Admin::UsersTest < ActionController::IntegrationTest
4   -
5   - def test_index
6   - visits admin_users_url
7   - assert_response :success
8   - end
9   -
10   - # def test_create_feed
11   - # visits admin_feeds_url
12   - # clicks_link "Create"
13   - # assert_response :success
14   - # fills_in "record[name]", :with => "New Type"
15   - # fills_in "record[url]", :with => "new_url"
16   - # fills_in "record[id_xpath]", :with => "//id"
17   - # fills_in "record[author_xpath]", :with => "//author"
18   - # fills_in "record[entry_xpath]", :with => "//entry"
19   - # before = Feed.count
20   - # clicks_button "Create"
21   - # assert_response(:success)
22   - # assert_equal(before + 1, Feed.count)
23   - # end
24   -
25   -end

0 comments on commit e7f5972

Please sign in to comment.
Something went wrong with that request. Please try again.