public
Fork of grempe/rails-authorization-plugin-test
Description: Test application for testing the rails-authorization-plugin
Homepage: http://code.google.com/p/rails-authorization-plugin/
Clone URL: git://github.com/lawrencepit/rails-authorization-plugin-test.git
name age message
file .gitignore Mon Feb 25 19:41:17 -0800 2008 Updated test harness to v1.0.5 of authorization... [grempe]
file .gitmodules Tue May 27 14:47:26 -0700 2008 submodule ii/ii [lawrencepit]
file README Thu May 22 15:35:04 -0700 2008 doc [lawrencepit]
file Rakefile Mon Feb 25 16:13:23 -0800 2008 Initial checkin of v1.0 test code. [grempe]
directory app/ Mon Feb 25 19:30:37 -0800 2008 Updated to pass tests using Rails 2.0.2 [grempe]
directory config/ Mon May 12 05:23:27 -0700 2008 Log directory was missing, made rake db:migrate... [mrflip]
directory db/ Tue Feb 26 14:00:44 -0800 2008 Updated authorization plugin to v1.0.9 [grempe]
directory doc/ Mon Feb 25 16:13:23 -0800 2008 Initial checkin of v1.0 test code. [grempe]
directory lib/ Mon May 12 05:23:27 -0700 2008 Log directory was missing, made rake db:migrate... [mrflip]
directory log/ Mon May 12 05:23:27 -0700 2008 Log directory was missing, made rake db:migrate... [mrflip]
directory public/ Mon Feb 25 16:13:23 -0800 2008 Initial checkin of v1.0 test code. [grempe]
directory script/ Mon Feb 25 16:13:23 -0800 2008 Initial checkin of v1.0 test code. [grempe]
directory test/ Tue May 27 20:19:33 -0700 2008 Also testing user.destroy [lawrencepit]
directory tmp/ Mon May 12 05:23:27 -0700 2008 Log directory was missing, made rake db:migrate... [mrflip]
directory vendor/ Wed May 28 19:13:52 -0700 2008 moved head of submodule so tests pass [lawrencepit]
README
== Authorization Test Application

This is a test application (and new application scaffold) for the Authorization
plugin with Object Roles table support. The Authorization plugin is described
in vendors/plugins/authorization/README (or check nicely formatted HTML docs in
that plugin directory /doc).

Prerequisites:
- Ruby on Rails v 2.0.2 or higher
- The Ruby Sqlite3 gem is installed and functional.  You can use MySQL for the tests but will need to manually create 
the databases needed and add them to 'config/database.yml' yourself.

Running the Tests:
- Make sure you have the correct authorization plugin:
  - git submodule init
  - git submodule update
- Make sure /config/database.yml has the correct settings for your DB (Default Sqlite3).
- Run the migration using "rake db:migrate" or reset the DB with "rake db:migrate:reset"
- Run 'rake test' from the root of the test application.

Optional manual tests:
- Start an instance of the mongrel webserver by running './script/server'
- Surf to http://localhost:3000 and try out the sample application.

Things to look at:
* The integration tests in /test/integration. Enter "rake test:integration" to run them.
* The migration scripts in /db/migrate.
* Notice how you can mix hardwired roles in your code with database roles.

http://www.writertopia.com/developers