Last active
December 28, 2015 22:19
-
-
Save ml242/7570641 to your computer and use it in GitHub Desktop.
testing with jasmine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| group :development, :test do | |
| gem 'rspec-rails' | |
| gem 'jasmine' | |
| gem 'pry-rails' | |
| end | |
| >rails g jasmine:install | |
| >rails g rspec:install | |
| >bundle | |
| > rake db:create; rake db:migrate | |
| > rake jasmine | |
| run localhost:8888 in browser | |
| Add TRAVIS GIST to .travis.yml | |
| ==== | |
| language: ruby | |
| rvm: | |
| - 1.9.3 | |
| before_script: | |
| - "sh -e /etc/init.d/xvfb start" | |
| - "export DISPLAY=:99.0" | |
| - "export JASMINE_SPEC_FORMAT=documentation" | |
| script: | |
| - "bundle exec rake db:create" | |
| - "bundle exec rake db:migrate RAILS_ENV=test" | |
| - "bundle exec rake jasmine:ci" | |
| env: | |
| - PG_USERNAME='postgres' | |
| ====== | |
| > rake travis:ci | |
| ## | |
| keep in mind that inner variables have access to the outside in javascript which is important | |
| to know for context. ?? confirm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment