Skip to content

Instantly share code, notes, and snippets.

@luizfonseca
Created December 25, 2011 21:44
Show Gist options
  • Save luizfonseca/1519789 to your computer and use it in GitHub Desktop.
Save luizfonseca/1519789 to your computer and use it in GitHub Desktop.
Test

Festival de Ideias

Setup

  • You should edit the database.sample.yml file, to your Postgres configuration.
  • You should create/migrate/seed the data.
  • You should run the test suite to assure everything is O.K.

###Configuration (in the root dir, lol)

  • mv config/database.sample.yml config/database.yml
  • vi config/database.yml (change vi to your favorite editor)

####Migration:

  • rake db:create db:migrate db:seed to prepare the app db
  • rake db:test:prepare - to prepare the test db

####Running

  • rails s -p 3000 (you have to set the port to 3000 due to Facebook/Omniauth access)

####YAML files

  • vi config/config.yml to set up the facebook auth and other configurations.

Test

  • rspec spec/ to run RSpec (Controller/Models/etc) tests
  • cucumber to run cucumber tests
  • rake jasmine to run jasmine (Javascript) tests WARNING - using gem jasminerice to jasmine tests

JasmineRice

As we're using the Gem JasmineRice, you just need to bootup the server (rails s -p 3000) and then access the tests through the URL http://localhost:3000/jasmine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment