Skip to content

Instantly share code, notes, and snippets.

@ml242
Last active December 28, 2015 22:19
Show Gist options
  • Select an option

  • Save ml242/7570641 to your computer and use it in GitHub Desktop.

Select an option

Save ml242/7570641 to your computer and use it in GitHub Desktop.
testing with jasmine
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