Closed kot-begemot closed 8 years ago
Let me know if that looks uninteresting to you, I'll gonna fix tests then.
Yeah, I'd actually ask you to add a new test for this because I'll never use it myself and I don't want to break it.
As for the new fixtures_preload
key in the YAML, I'd ask you to check two things for us:
html_fixtures
, or, if they are specific to jasmine-jquery in their utility, then jasmine_jquery_fixtures
for abundant clarity that it's "proprietary" to that plugin.Hey, I fixed tests. They are passing now.
Another thing is renaming new key to html_fixtures
. This is actually specific for PhantomJS. Thing is - in order to run test on CI, rake generates an HTML file and places that in tmp folder. Then it runs PhatomJS providing it with a path to generated html file. PhantomJS then includes HTML fixtures using a relative path. When running through browser there is a rails app, that can be requested, but for PhantomJS case, html fixtures should be there prerendered already. The idea is similar to assets_precompile concept.
Anyways, I added a test coverage for it as well.
@searls so any feedback?
Sorry I haven't gotten feedback to you yet, the truth of it is:
I don't know where that leaves us, to be honest. I have a todo to find the time to look at this issue but it may be a while, I'm afraid.
After previewing some of the changes in Sprockets 4 yesterday, I'm deciding to deprecate what (already apparently broken) fixture file support this gem has, with plans to eventually remove it. It's not a feature I recommend folks use in the vast majority of cases and it adds complexities I'd rather not maintain.
Thanks for working on this, but I recommend you keep your fork alive if you need this functionality.
I made some effort to make sure that
jasmine-jquery
is able to fetch fixtures during the tests. This solution also works with phantomJS.So, an example. Suppose, jasmine config has that
And say you have a following test
Then fixturesd will be properly served both in browser at
localhost:3000/spec
and in console withbundle exec rake spec:javascript