Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

Simple Todo

Description

This project is a sample project for:

  • Authenticating users using authlogic
  • Unit testing with rspec + factory-girl
  • Acceptance testing with cucumber
    • Using AJAX in Acceptance tests

Installation

  1. Install RVM from here

  2. Install Ruby with the RVM

    $rvm install 1.8.7
    $rvm use 1.8.7 --default
    
  3. Clone the simple-todo repository

    $git clone git@github.com:mrako/simple-todo.git
    
  4. Install Gems

    $gem install bundler --no-ri --no-rdoc
    $cd simple-todo
    $bundle install
    
  5. Init the Database

    $rake db:migrate
    
  6. Run the application in localhost

    $rails s
    

Tests

Robotframework & Selenium

  1. Download & Install Robotframework from here and run

    $sudo python setup.py install
    
  2. Download & Install the latest robot selenium library from here and run

    $sudo python setup.py install
    
  3. To run your robot tests

    $pybot .
    

Cucumber

  1. The latest version of cucumber-rails is 1.3.0 however this application is using version 1.2.1. After running bundle install you can check your version running

    $bundle show cucumber-rails
    
  2. If you wish to have more information about cucumber-rails, you can find it from here

  3. To run your cucumber tests

    $rake cucumber
    

Rspec

  1. The latest version of rspec-rails is 2.8.1 and this application is using rspec-rails version 2.8.1 aswell. To see which version you have installed

    $bundle show rspec-rails
    
  2. To find more information about rspec-rails visit here

  3. To run your rspec tests

    $rake spec
    

Using the fixtures in your development environment

    $rake db:seed
Something went wrong with that request. Please try again.