Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add jasmine via official jasmine gem
* Run `rails g jasmine:install` * Configure to avoid default phantomjs download
- Loading branch information
Showing
5 changed files
with
140 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
# src_files | ||
# | ||
# Return an array of filepaths relative to src_dir to include before jasmine specs. | ||
# Default: [] | ||
# | ||
# EXAMPLE: | ||
# | ||
# src_files: | ||
# - lib/source1.js | ||
# - lib/source2.js | ||
# - dist/**/*.js | ||
# | ||
src_files: | ||
- assets/application.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: | ||
- assets/application.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' | ||
|
||
# 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_helper | ||
# | ||
# Ruby file that Jasmine server will require before starting. | ||
# Returned relative to your root path | ||
# Default spec/javascripts/support/jasmine_helper.rb | ||
# | ||
# EXAMPLE: | ||
# | ||
# spec_helper: spec/javascripts/support/jasmine_helper.rb | ||
# | ||
spec_helper: spec/javascripts/support/jasmine_helper.rb | ||
|
||
# boot_dir | ||
# | ||
# Boot directory path. Your boot_files must be returned relative to this path. | ||
# Default: Built in boot file | ||
# | ||
# EXAMPLE: | ||
# | ||
# boot_dir: spec/javascripts/support/boot | ||
# | ||
boot_dir: | ||
|
||
# boot_files | ||
# | ||
# Return an array of filepaths relative to boot_dir to include in order to boot Jasmine | ||
# Default: Built in boot file | ||
# | ||
# EXAMPLE | ||
# | ||
# boot_files: | ||
# - '**/*.js' | ||
# | ||
boot_files: | ||
|
||
# rack_options | ||
# | ||
# Extra options to be passed to the rack server | ||
# by default, Port and AccessLog are passed. | ||
# | ||
# This is an advanced options, and left empty by default | ||
# | ||
# EXAMPLE | ||
# | ||
# rack_options: | ||
# server: 'thin' | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Prevent PhantomJS auto install, uses PhantomJS already on your path. | ||
Jasmine.configure do |config| | ||
config.prevent_phantom_js_auto_install = true | ||
end |