GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ecruby/authlogic_base: Basic application with signups, password recovery, and full RSpec / Cucumber tests. Extracted from railsmentors.org with modifications.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

22 Commits
22 Commits

Folders and files

NameName
Last commit message
Last commit date
app
app
 
 
config
config
 
 
db
db
 
 
doc
doc
 
 
features
features
 
 
lib/tasks
lib/tasks
 
 
public
public
 
 
script
script
 
 
spec
spec
 
 
vendor/plugins
vendor/plugins
 
 
.gitignore
.gitignore
 
 
README.rdoc
README.rdoc
 
 
Rakefile
Rakefile
 
 
cucumber.yml
cucumber.yml
 
 

Repository files navigation

YOUR_APP_NAME app

Setup

Database setup

SQLite3

Not much to do here

cp config/database.sqlite.example config/database.yml

Your database will be created when you run your migrations

MySQL

Set up MySQL and set up root user with no password on your dev machine. Turn off MySQL when not using. This enables Rails to create databases automatically. If you choose to set up your database any other way, you are on your own for creating the databases listed in the example yml file.

cp config/database.example config/database.yml

Libraries

Gems are managed via the dependencies in config/environment.rb

sudo gem install mocha
sudo rake gems:install
sudo rake RAILS_ENV="test" gems:install

Email setup

Copy the email configuration template:

cp config/email.example config/email.yml

Open config/email.yml and change

WEB_HOST

to your full base URL for production.

Change

SITE_ADMIN_EMAIL

to the site admin’s email. This is where things like “contact us for support” forms should go

Create the databases and load the default roles

rake db:create:all
rake db:bootstrap

Run the tests

rake spec
cucumber features

Selenium support

If you have Selenium installed, you can tag specific Cucumber features to run by tagging them with

@selenium

Install selenium-client gem

sudo gem install selenium-client

And then run the stories that require Selenium.

cucumber -p selenium features

Selenium is SLOW, so only run stories that require Javascript/Ajax in order to work.

The Bootstrap rake task

Right now the bootstrap task creates the “user” role and the “admin” role, prompts you for admin user info, creates the user, and then adds the “admin” role to the user. Modify for your own uses.

Changelog

2010-01-07

* Updated for newest cucumber and rspec

2009-12-03

* Updated to work with Rails 2.3.5

2009-11-14

* Fixed selenium bug

2009-11-01

* Added Selenium support

2009-10-01 Updated to Rails 2.3.4

About

Basic application with signups, password recovery, and full RSpec / Cucumber tests. Extracted from railsmentors.org with modifications.

Resources

Readme
Activity
Custom properties

Stars

1 star

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.