public
Description: It's a simple user account system of BDD with Cucumber and RSpec implemented on Simplified Chinese.
Homepage: http://l404.blogspot.com
Clone URL: git://github.com/404/bdd_user_demo.git
name age message
file README Loading commit data...
file Rakefile
directory app/
directory config/
directory db/
directory doc/
directory features/
directory lib/
directory log/
directory public/
directory script/
directory spec/
directory test/
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