Skip to content
This repository was archived by the owner on Jan 10, 2024. It is now read-only.

Conversation

zmoazeni
Copy link
Contributor

I don't know why sprockets wants to concatonate all files in rails 4
but this will explicitly write an empty file for jasmine-specs.js
which stops the duplicate test runs.

This is extremely hackish, but I can't find a way around this.

Fixes #28

I don't know why sprockets wants to concatonate all files in rails 4
but this will explicitly write an empty file for jasmine-specs.js
which stops the duplicate test runs.

This is extremely hackish, but I can't find a way around this.
@zmoazeni
Copy link
Contributor Author

By the way, this is a lolfix.

If you have a jasmine.yml like:

spec_files:
  - "spec.js"

and a javascripts/spec.js like:

//= require baz_spec
//= require foo_spec

The tests will still run twice.

searls added a commit that referenced this pull request Oct 31, 2013
Only run rails 4 tests a single time from the command line
@searls searls merged commit 2ce4fcb into testdouble:master Oct 31, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

phantomjs runner executes my tests twice

2 participants