Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 60 lines (40 sloc) 1.48 kb
1e20e8f @prathe Add feature "User log in"
authored
1 # Implementing authentication using Behavior Driven Development
2
3 I create this demo app to familiarize with Authlogic and BDD. This demo is featuring:
4
5 * Rails 3.1
6 * Authlogic
7 * RSpec
8 * Cucumber
9 * Capybara
10 * Factory Girl
11
12 ## About
13
14 This demo is evolutive and has started with a simple "User log in" feature. The features are added using the outside-in approach.
15
16 Look at the git tags to browse through the evolution of the features and the scenarios implementations.
17
18 ## Running the demo
19
20 1. Clone the repo
21 2. Copy config/database.yml-tmpl to config/database.yml
22 3. Copy config/cucumber.yml-tmpl to config/cucumber.yml
23 4. If you are using rvm, create your gemset and
24 5. gem install bundler
25 6. bundle install
26 7. rake db:setup RAILS_ENV=test
27 8. rake db:setup RAILS_ENV=development
28
29
30 ## Running the tests
31
32 ./script/cucumber
33
34 All of them should be green
35
36 ## Some tests key files
37
6da26c4 @prathe Update README
authored
38 * features/user_login.feature
39 * features/support/user_login.rb
40 * features/step_definitions/user_login_steps.rb
c213b06 @prathe Merge the Changelog in to the Readme
authored
41 * spec/factories.rb
42
43 ## Changelog
44
6da26c4 @prathe Update README
authored
45 ### 0.3
46
47 * Redefine existing features using acceptance test philosophy instead of integration test philosophy and by being more declarative in scenarios elaboration.
4acb87a @prathe Add Feature "User log out"
authored
48
49 ### 0.2
50
51 * DRY up a bit the test and use the first person when describing scenarios
52 * Feature: User log out
6da26c4 @prathe Update README
authored
53 * Scenario: I log out
54
55 ### 0.1
56
57 * Authlogic minimal MVC + migration installation
58 * Feature: User log in
59 * Scenario: I want to log in
60 * Scenario: I successfully log in
Something went wrong with that request. Please try again.