404 / bdd_user_demo
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (7)
- Wiki (1)
- Graphs
-
Branch:
master
| name | age | message | |
|---|---|---|---|
| |
README | Mon Apr 13 20:25:04 -0700 2009 | |
| |
Rakefile | Tue Mar 31 02:40:38 -0700 2009 | |
| |
app/ | Thu Apr 02 00:54:30 -0700 2009 | |
| |
config/ | Mon Apr 13 20:25:04 -0700 2009 | |
| |
db/ | Thu Apr 02 00:54:30 -0700 2009 | |
| |
doc/ | Tue Mar 31 02:40:38 -0700 2009 | |
| |
features/ | Mon Apr 13 20:25:04 -0700 2009 | |
| |
lib/ | Mon Apr 13 20:25:04 -0700 2009 | |
| |
log/ | Tue Mar 31 02:40:38 -0700 2009 | |
| |
public/ | Tue Mar 31 02:40:38 -0700 2009 | |
| |
script/ | Tue Mar 31 03:10:25 -0700 2009 | |
| |
spec/ | Mon Apr 13 20:25:04 -0700 2009 | |
| |
test/ | Thu Apr 02 00:54:30 -0700 2009 |
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
