Created
May 9, 2012 15:04
-
-
Save agmcleod/2645217 to your computer and use it in GitHub Desktop.
Jasmine Example
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
source 'http://rubygems.org' | |
gem 'rails', '3.2.0' | |
# Bundle edge Rails instead: | |
# gem 'rails', :git => 'git://github.com/rails/rails.git' | |
gem 'mysql2'# , '~> 0.2.7' | |
gem 'devise' #, '~> 1.1.3' | |
gem 'formtastic' | |
# gem 'rails_admin', :git => 'git://github.com/sferik/rails_admin.git' | |
gem 'jasmine', :git => 'git://github.com/pivotal/jasmine-gem.git', :branch => '1.2.rc1' | |
gem 'jasminerice' | |
gem 'haml' | |
gem 'haml-rails' | |
gem 'rake' #, '0.8.7' | |
# Asset template engines | |
gem 'sass-rails' | |
gem 'coffee-script' | |
gem 'uglifier' | |
gem 'compass', ">= 0.11.5" | |
gem 'jquery-rails' | |
gem 'cancan' | |
gem 'ejs' | |
# Bundle gems for the local environment. Make sure to | |
# put test-only gems in this group so their generators | |
# and rake tasks are available in development mode: | |
# group :development, :test do | |
# gem 'webrat' | |
# end | |
group :test, :development do | |
gem 'autotest' | |
gem 'capybara' | |
gem 'database_cleaner' | |
gem 'cucumber-rails' | |
gem 'cucumber' | |
gem 'rspec' | |
gem 'rspec-rails' | |
gem 'spork' | |
gem 'launchy' | |
gem 'timecop' | |
gem 'jasmine-headless-webkit', :git => 'git://github.com/johnbintz/jasmine-headless-webkit.git' | |
gem 'evergreen', :require => 'evergreen/rails' | |
end | |
group :test do | |
gem 'factory_girl_rails' | |
end | |
group :production do | |
gem 'pg' | |
end |
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
# src_files | |
# | |
# Return an array of filepaths relative to src_dir to include before jasmine specs. | |
# Default: [] | |
# | |
src_files: | |
- vendor/assets/javascripts/jquery-1.5.1.js | |
- vendor/assets/javascripts/underscore-1.1.4.js | |
- vendor/assets/javascripts/backbone-0.3.3.js | |
- vendor/assets/javascripts/mustache-0.3.0.js | |
- vendor/assets/javascripts/raphael-1.5.2.js | |
- vendor/assets/javascripts/raphael.shapes-0.0.2.js | |
- spec/javascripts/helpers/AppTemplate.js | |
- app/assets/javascripts/combat/game.js | |
- app/assets/javascripts/combat/messages.js.coffee | |
- app/assets/javascripts/combat/interface.js | |
- app/assets/javascripts/combat/grid.js | |
- vendor/assets/javascripts/jasmine-fixture-0.0.8.js | |
# stylesheets | |
# | |
# Return an array of stylesheet filepaths relative to src_dir to include before jasmine specs. | |
# Default: [] | |
# | |
# EXAMPLE: | |
# | |
# stylesheets: | |
# - css/style.css | |
# - stylesheets/*.css | |
# | |
stylesheets: | |
- stylesheets/**/*.css | |
# helpers | |
# | |
# Return an array of filepaths relative to spec_dir to include before jasmine specs. | |
# Default: ["helpers/**/*.js"] | |
# | |
# EXAMPLE: | |
# | |
# helpers: | |
# - helpers/**/*.js | |
# | |
helpers: | |
- helpers/**/*.js | |
# spec_files | |
# | |
# Return an array of filepaths relative to spec_dir to include. | |
# Default: ["**/*[sS]pec.js"] | |
# | |
# EXAMPLE: | |
# | |
# spec_files: | |
# - **/*[sS]pec.js | |
# | |
spec_files: | |
- "**/*[sS]pec.js" | |
- "**/*[sS]pec.coffee" | |
# src_dir | |
# | |
# Source directory path. Your src_files must be returned relative to this path. Will use root if left blank. | |
# Default: project root | |
# | |
# EXAMPLE: | |
# | |
# src_dir: public | |
# | |
src_dir: | |
# spec_dir | |
# | |
# Spec directory path. Your spec_files must be returned relative to this path. | |
# Default: spec/javascripts | |
# | |
# EXAMPLE: | |
# | |
# spec_dir: spec/javascripts | |
# | |
spec_dir: spec/javascripts | |
# asset_pipeline_paths | |
# | |
# Paths you would like to be served by the Sprockets asset pipeline. | |
# | |
# If you include your spec_dir (eg: - spec/javascripts ) here, | |
# Jasmine will use the Sprockets asset pipeline to build your spec files. | |
# | |
# Default: [] | |
# | |
# EXAMPLE: | |
# asset_pipeline_paths: | |
# - app/assets | |
# - spec/javascripts | |
asset_pipeline_paths: | |
- app/assets | |
- spec/javascripts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment