Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Added --server explanation #121

wants to merge 1 commit into from

3 participants


Updated the docs with a few lines for people setting up guard-jasmine with the jasmine gem. More info in #120


Seems good to me. What happens right now when you forget this option? Is there something we can do to point you in the right direction in that case?


If you see the linked issue, that's what I'm getting:

app error: No route matches [GET] "/jasmine" (ActionController::RoutingError)

I'm not sure what could be done other than adding it to the docs. What confuses me is: What does it mean if I specify another server instead of jasmine_gem? Do I need to run that server myself? All in all the different server options don't make much sense to me.


Thanks a lot for this, but I think we can do better by fixing the real problem: The server auto-detection happens after we set a default Jasmine URL, which differs depending on the server. By moving the server detection right before the default Jasmine URL generation in the Guard plugin class and also the CLI class, we should fix #120


That sounds awesome!

@netzpirat netzpirat closed this pull request from a commit
@netzpirat netzpirat Refactor default server option detection.
This refactoring moves the server detection before
the default Jasmine URL generation, since in case
of the Jasmine Gem as server, we want to have
`/` as runner url and not `/jasmine` like all the other

Fixes #120, Closes #121
@netzpirat netzpirat closed this in 017813a

Can you please try the master branch without specify the :server nor the :jasmine_url options? They should now have proper default values.


Wow, that's an amazing fast response. Thanks so much. Unfortunately, I updated from master, and it's still calling /jasmine. I'm pretty sure it's running with the latest code:

gem 'guard-jasmine', :git => "git://"
vagrant@lucid64:/vagrant$ bundle update guard-jasmine
Updating git://
Fetching gem metadata from
Fetching gem metadata from
Resolving dependencies...
vagrant@lucid64:/vagrant$ guard-jasmine --verbose
01:30:12 - INFO - Guard::Jasmine starts Unicorn spec server on port 58925 in test environment (coverage off).
I, [2013-04-04T01:30:12.743506 #14395]  INFO -- : listening on addr= fd=7
I, [2013-04-04T01:30:12.743668 #14395]  INFO -- : worker=0 spawning...
I, [2013-04-04T01:30:12.744902 #14395]  INFO -- : master process ready
I, [2013-04-04T01:30:12.745411 #14400]  INFO -- : worker=0 spawned pid=14400
I, [2013-04-04T01:30:12.745638 #14400]  INFO -- : Refreshing Gem list
01:30:12 - INFO - Waiting for Jasmine test runner at http://localhost:58925/jasmine

Thanks a lot for trying it. I see two more issues I need to fix: First the spec dir needs also to be auto detected, since the server detection depends on the spec dir, and I see a bad option detection in the CLI options, namely the url is still before the server detection. I fix that asap, but I'm short on time today, but you can expect an update tomorrow.


Great. Thanks so much. I'm not in a hurry, since it has an easy fix. Thanks for being so responsive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 3, 2013
  1. @runemadsen
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 0 deletions.
  1. +6 −0
@@ -602,6 +602,12 @@ Guard::Jasmine includes a little command line utility to run your specs once and
$ guard-jasmine
+If you're running your specs with the `jasmine` gem, remember to set the `--server` option to `:jasmine_gem`.
+guard-jasmine spec --server=jasmine_gem
You can get help on the available options with the `help` task:
Something went wrong with that request. Please try again.