This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
README | ||
| |
Rakefile | ||
| |
app/ | ||
| |
config/ | ||
| |
db/ | ||
| |
doc/ | ||
| |
features/ | ||
| |
lib/ | ||
| |
log/ | ||
| |
public/ | ||
| |
script/ | ||
| |
spec/ | ||
| |
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








