jasmine / jasmine-gem

Jasmine ruby gem
682 stars 275 forks source link

Is it possible to run jasmine tests across LAN? #250

Closed cmrd-senya closed 9 years ago

cmrd-senya commented 9 years ago

I want to run tests across LAN, so that jasmin is set up on one computer, and web browser runs on another one. In order to do that I have to change the hostname to open port on. But it seems that hostname is hardcoded as localhost at https://github.com/jasmine/jasmine-gem/blob/master/lib/jasmine/base.rb

Is there any way to do this without modifying jasmine-gem source code?

Gerg commented 9 years ago

You should be able to set a "Host" in the rack_options in your Jasmine.yml. Note the casing, as those options are passed directly into rack.

cmrd-senya commented 9 years ago

Thanks, appending

rack_options:
  Host: '0.0.0.0'

to jasmine.yml did the trick.