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

404 / bdd_user_demo

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

click here to add a description

click here to add a homepage

  • Branches (8)
    • email_activation
    • master ✓
    • refactoring001
    • remember_me
    • reset_password
    • user_login
    • user_logout
    • user_signup
  • Tags (7)
    • v1.0-alpha-1
    • v0.6
    • v0.5
    • v0.4
    • v0.3
    • v0.2
    • v0.1
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.

It's a simple user account system of BDD with Cucumber and RSpec implemented on Simplified Chinese. — Read more

  cancel

http://l404.blogspot.com

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

This URL has Read+Write access

First refactoring. 
404 (author)
Mon Apr 13 20:25:04 -0700 2009
commit  2f4df735e62f65d040753255d6446a4c7a5e0913
tree    12fafc170970baa67bd2f6803aa9ed42310ab220
parent  995c2eff936de8c51dfcb822f428cee32324d042
bdd_user_demo /
name age
history
message
file README Mon Apr 13 20:25:04 -0700 2009 First refactoring. [404]
file Rakefile Tue Mar 31 02:40:38 -0700 2009 first commit. [404]
directory app/ Thu Apr 02 00:54:30 -0700 2009 People can be change their passwords. [404]
directory config/ Mon Apr 13 20:25:04 -0700 2009 First refactoring. [404]
directory db/ Thu Apr 02 00:54:30 -0700 2009 People can be change their passwords. [404]
directory doc/ Tue Mar 31 02:40:38 -0700 2009 first commit. [404]
directory features/ Mon Apr 13 20:25:04 -0700 2009 First refactoring. [404]
directory lib/ Mon Apr 13 20:25:04 -0700 2009 First refactoring. [404]
directory log/ Tue Mar 31 02:40:38 -0700 2009 first commit. [404]
directory public/ Tue Mar 31 02:40:38 -0700 2009 first commit. [404]
directory script/ Tue Mar 31 03:10:25 -0700 2009 A user can be able to sign up. [404]
directory spec/ Mon Apr 13 20:25:04 -0700 2009 First refactoring. [404]
directory test/ Thu Apr 02 00:54:30 -0700 2009 People can be change their passwords. [404]
README
== Download

You can check the latest source from git:

> git clone git://github.com/404/bdd_user_demo.git


== Required Gems

Running tests need to install Cucumber, Webrat, RSpec and Factory_girl.Highly recommend using Rubygems.Just do this as 
following steps.

> [sudo] gem install rspec rspec-rails cucumber webrat

> [sudo] gem install thoughtbot-factory_girl --source http://gems.github.com

You’ll need to configure Factory_girl in your application's testing environment.

In config/environments/test.rb

  config.gem "thoughtbot-factory_girl",
             :lib    => "factory_girl",
             :source => "http://gems.github.com"


== E-mail Configuration

Before you start sending e-mail, you'll also need to configure Action Mailer in your Rails application’s environment.

In config/environment.rb:

    config.action_mailer.smtp_settings = {
      :address              => 'smtp.gmail.com',
      :port                 => 25,
      :domain               => 'gmail.com',
      :user_name            => 'YOUR_GMAL_USERNAME',
      :password             => 'YOUR_GMAIL_PASSWORD',
      :authentication       => 'login',
      :enable_starttls_auto => true
    }
    
In this example, I chose gmail as my SMTP server. If you do the same thins as me, you should specify your gmail account 
to overwrite that capital letters; otherwise, you'll need to specify some additional configuration to tell Action Ma
iler where to find an SMTP server to handle your outgoing e-mail.


== Run features

After you finished all of that, you can run features like this:

> rake features

That's all, enjoy!


== Tutorial

Part One: sign up
http://l404.blogspot.com/2009/02/cucumberrspec-1.html

Part Two: email activation
http://l404.blogspot.com/2009/03/cucumberrspec-2.html

Part Three: user login
http://l404.blogspot.com/2009/03/cucumberrspec3_6419.html

Part Four: user login with remember me
http://l404.blogspot.com/2009/03/cucumberrspec4.html

Part Five: user logout
http://l404.blogspot.com/2009/03/cucumberrspec5.html

Part Six: reset password
http://l404.blogspot.com/2009/03/cucumberrspec6.html

Part seven: refactoring
http://l404.blogspot.com/2009/04/cucumberrspecbdd7.html

More information on how to getting started is at http://l404.blogspot.com
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