Feature Based Rails Project
Ruby JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
db
doc
features
lib
log
public
script
spec
stories
test
tmp
vendor/plugins
.gitignore
Capfile
README
README.markdown
Rakefile
cucumber.yml

README.markdown

fbrp Feature Based Rails Project

Another one of those starter rails projects. This one has one interesting feature which is that it has rewritten 'features' for testing authentication using restful-authentication. The features have been written to be

  1. Simple
  2. Declarative rather than imperative (they say what should happen not how)
  3. Have steps that are simple enough that I can understand them (that's pretty simple)

Dependencies

You'll need to install the following gems

  1. rspec-rails
  2. cucumber (currently a dependency of rspec-rails)
  3. the very latest compass

Compass currently requires the latest version of haml. Follow instructions from here

Apologies for depending on compass, its not necessary for the features, but it is something I want to use. You may need other stuff as well.

Run Features

Finally

  1. create a database.yml
  2. run db:create:all db:migrate

Then the following should run and pass

  1. rake spec
  2. rake features