github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

grempe / rails-authorization-plugin-test

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 22
    • 4
  • Source
  • Commits
  • Network (4)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Test application for testing the rails-authorization-plugin — Read more

  cancel

http://code.google.com/p/rails-authorization-plugin/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Removed fixme note.  The problem has been resolved in the plugin upstream 
repo. 
grempe (author)
Mon May 11 15:30:38 -0700 2009
commit  45dfe729e4ec10c17dbc44d7501a930055fa7a74
tree    f47df2e9235b8fde0984256764be69813193823b
parent  7325a222e90f3530f3c3f55966212db5a4a8573f
rails-authorization-plugin-test /
name age
history
message
file .gitignore Loading commit data...
file .gitmodules
file README
file Rakefile
directory app/
directory config/
directory db/
directory doc/
directory lib/
directory log/
directory public/
directory script/
directory test/
directory tmp/
directory vendor/
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 which gets included as a git sub-module:
  - first time:
    - git submodule init
    - git submodule update
  - to pick up later updates to the plugin sub-module do something like:
    - cd vendor/plugins/authorization
    - git checkout master
    - git remote update
    - cd ../../../
    - rake test

Note: Learn more about using submodules
http://speirs.org/2009/05/11/understanding-git-submodules/
http://woss.name/2008/04/09/using-git-submodules-to-track-vendorrails/

- 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

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server