2

I try to use phantomJS with Jasmine. But my fixtures can't be load because an error

Error: JSONFixture could not be loaded: assets/backend/fixtures/json/fr.json (status: error, message: NETWORK_ERR: XMLHttpRequest Exception 101)

I can see here I must add option to phantomJS for disable cross-server security.

Phantom JS synchronous AJAX request : NETWORK_ERR: XMLHttpRequest Exception 101

or here:

grunt-contrib-jasmine and PhantomJS security

But I don't know where to pass this options because phantomJS is called automatically when call:

bundle exec rake spec:javascript

or

bundle exec Guard -g frontend

So you can see I use Guard too but I think it's the next step.

Thanks to read and best regards

Community
  • 1
  • 1
Guillaume
  • 335
  • 2
  • 4
  • 16

1 Answers1

2

Add the below to your jasmine.yml file

phantom_options: --web-security=no

rguerrettaz
  • 836
  • 8
  • 12