Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 936 Bytes

README.md

File metadata and controls

35 lines (26 loc) · 936 Bytes

Wagn application code used at Wikirate.org

Steps to make it work

  1. create folders "files","config","public" and "public/assets" under the wikirate root directory.
  2. rake wagn:seed
  3. import the database
  4. bundle exec wagn s

Testing

Paths:

 mod/*/spec                       # rspec tests
 mod/*/features                   # cucumber tests
 mod/*/features/step_definitions  # cucumber step definitions

Run rake wikirate:test:seed to prepare test database.

Start rspec with wagn rspec and cucumber with wagn cucumber. Alternatively, you can use the shorter commands wagn rs and wagn cc

To update the test data from the dev site run

cap staging backup:pull_db
env RAILS_ENV=test rake wikirate:test:update_seed_data

This updates the mysql dump in test/wikiratetest.db that is also used for continuous integration testing. So don't forget to include it in your git commits.