[23761] users/jberry/mpwa
source_changes at macosforge.org
source_changes at macosforge.org
Sun Apr 8 21:21:51 PDT 2007
Revision: 23761
http://trac.macosforge.org/projects/macports/changeset/23761
Author: jberry at macports.org
Date: 2007-04-08 21:21:51 -0700 (Sun, 08 Apr 2007)
Log Message:
-----------
Remove misgenerated port_pkg_files scaffolding
Removed Paths:
-------------
users/jberry/mpwa/app/controllers/port_pkg_files_controller.rb
users/jberry/mpwa/app/helpers/port_pkg_files_helper.rb
users/jberry/mpwa/app/models/port_pkg_files.rb
users/jberry/mpwa/app/views/layouts/port_pkg_files.rhtml
users/jberry/mpwa/app/views/port_pkg_files/
users/jberry/mpwa/test/fixtures/port_pkg_files.yml
users/jberry/mpwa/test/functional/port_pkg_files_controller_test.rb
users/jberry/mpwa/test/unit/port_pkg_files_test.rb
Deleted: users/jberry/mpwa/app/controllers/port_pkg_files_controller.rb
===================================================================
--- users/jberry/mpwa/app/controllers/port_pkg_files_controller.rb 2007-04-09 04:10:51 UTC (rev 23760)
+++ users/jberry/mpwa/app/controllers/port_pkg_files_controller.rb 2007-04-09 04:21:51 UTC (rev 23761)
@@ -1,51 +0,0 @@
-class PortPkgFilesController < ApplicationController
- def index
- list
- render :action => 'list'
- end
-
- # GETs should be safe (see http://www.w3.org/2001/tag/doc/whenToUseGet.html)
- verify :method => :post, :only => [ :destroy, :create, :update ],
- :redirect_to => { :action => :list }
-
- def list
- @port_pkg_files_pages, @port_pkg_files = paginate :port_pkg_files, :per_page => 10
- end
-
- def show
- @port_pkg_files = PortPkgFiles.find(params[:id])
- end
-
- def new
- @port_pkg_files = PortPkgFiles.new
- end
-
- def create
- @port_pkg_files = PortPkgFiles.new(params[:port_pkg_files])
- if @port_pkg_files.save
- flash[:notice] = 'PortPkgFiles was successfully created.'
- redirect_to :action => 'list'
- else
- render :action => 'new'
- end
- end
-
- def edit
- @port_pkg_files = PortPkgFiles.find(params[:id])
- end
-
- def update
- @port_pkg_files = PortPkgFiles.find(params[:id])
- if @port_pkg_files.update_attributes(params[:port_pkg_files])
- flash[:notice] = 'PortPkgFiles was successfully updated.'
- redirect_to :action => 'show', :id => @port_pkg_files
- else
- render :action => 'edit'
- end
- end
-
- def destroy
- PortPkgFiles.find(params[:id]).destroy
- redirect_to :action => 'list'
- end
-end
Deleted: users/jberry/mpwa/app/helpers/port_pkg_files_helper.rb
===================================================================
--- users/jberry/mpwa/app/helpers/port_pkg_files_helper.rb 2007-04-09 04:10:51 UTC (rev 23760)
+++ users/jberry/mpwa/app/helpers/port_pkg_files_helper.rb 2007-04-09 04:21:51 UTC (rev 23761)
@@ -1,2 +0,0 @@
-module PortPkgFilesHelper
-end
Deleted: users/jberry/mpwa/app/models/port_pkg_files.rb
===================================================================
--- users/jberry/mpwa/app/models/port_pkg_files.rb 2007-04-09 04:10:51 UTC (rev 23760)
+++ users/jberry/mpwa/app/models/port_pkg_files.rb 2007-04-09 04:21:51 UTC (rev 23761)
@@ -1,3 +0,0 @@
-class PortPkgFiles < ActiveRecord::Base
- belongs_to :port_pkg
-end
Deleted: users/jberry/mpwa/app/views/layouts/port_pkg_files.rhtml
===================================================================
--- users/jberry/mpwa/app/views/layouts/port_pkg_files.rhtml 2007-04-09 04:10:51 UTC (rev 23760)
+++ users/jberry/mpwa/app/views/layouts/port_pkg_files.rhtml 2007-04-09 04:21:51 UTC (rev 23761)
@@ -1,17 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
- <title>PortPkgFiles: <%= controller.action_name %></title>
- <%= stylesheet_link_tag 'scaffold' %>
-</head>
-<body>
-
-<p style="color: green"><%= flash[:notice] %></p>
-
-<%= yield %>
-
-</body>
-</html>
Deleted: users/jberry/mpwa/test/fixtures/port_pkg_files.yml
===================================================================
--- users/jberry/mpwa/test/fixtures/port_pkg_files.yml 2007-04-09 04:10:51 UTC (rev 23760)
+++ users/jberry/mpwa/test/fixtures/port_pkg_files.yml 2007-04-09 04:21:51 UTC (rev 23761)
@@ -1,5 +0,0 @@
-# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
-one:
- id: 1
-two:
- id: 2
Deleted: users/jberry/mpwa/test/functional/port_pkg_files_controller_test.rb
===================================================================
--- users/jberry/mpwa/test/functional/port_pkg_files_controller_test.rb 2007-04-09 04:10:51 UTC (rev 23760)
+++ users/jberry/mpwa/test/functional/port_pkg_files_controller_test.rb 2007-04-09 04:21:51 UTC (rev 23761)
@@ -1,92 +0,0 @@
-require File.dirname(__FILE__) + '/../test_helper'
-require 'port_pkg_files_controller'
-
-# Re-raise errors caught by the controller.
-class PortPkgFilesController; def rescue_action(e) raise e end; end
-
-class PortPkgFilesControllerTest < Test::Unit::TestCase
- fixtures :port_pkg_files
-
- def setup
- @controller = PortPkgFilesController.new
- @request = ActionController::TestRequest.new
- @response = ActionController::TestResponse.new
-
- @first_id = port_pkg_files(:first).id
- end
-
- def test_index
- get :index
- assert_response :success
- assert_template 'list'
- end
-
- def test_list
- get :list
-
- assert_response :success
- assert_template 'list'
-
- assert_not_nil assigns(:port_pkg_files)
- end
-
- def test_show
- get :show, :id => @first_id
-
- assert_response :success
- assert_template 'show'
-
- assert_not_nil assigns(:port_pkg_files)
- assert assigns(:port_pkg_files).valid?
- end
-
- def test_new
- get :new
-
- assert_response :success
- assert_template 'new'
-
- assert_not_nil assigns(:port_pkg_files)
- end
-
- def test_create
- num_port_pkg_files = PortPkgFiles.count
-
- post :create, :port_pkg_files => {}
-
- assert_response :redirect
- assert_redirected_to :action => 'list'
-
- assert_equal num_port_pkg_files + 1, PortPkgFiles.count
- end
-
- def test_edit
- get :edit, :id => @first_id
-
- assert_response :success
- assert_template 'edit'
-
- assert_not_nil assigns(:port_pkg_files)
- assert assigns(:port_pkg_files).valid?
- end
-
- def test_update
- post :update, :id => @first_id
- assert_response :redirect
- assert_redirected_to :action => 'show', :id => @first_id
- end
-
- def test_destroy
- assert_nothing_raised {
- PortPkgFiles.find(@first_id)
- }
-
- post :destroy, :id => @first_id
- assert_response :redirect
- assert_redirected_to :action => 'list'
-
- assert_raise(ActiveRecord::RecordNotFound) {
- PortPkgFiles.find(@first_id)
- }
- end
-end
Deleted: users/jberry/mpwa/test/unit/port_pkg_files_test.rb
===================================================================
--- users/jberry/mpwa/test/unit/port_pkg_files_test.rb 2007-04-09 04:10:51 UTC (rev 23760)
+++ users/jberry/mpwa/test/unit/port_pkg_files_test.rb 2007-04-09 04:21:51 UTC (rev 23761)
@@ -1,10 +0,0 @@
-require File.dirname(__FILE__) + '/../test_helper'
-
-class PortPkgFilesTest < Test::Unit::TestCase
- fixtures :port_pkg_files
-
- # Replace this with your real tests.
- def test_truth
- assert true
- end
-end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070408/7c6e8cc3/attachment.html
More information about the macports-changes
mailing list