mutewinter / tapas-with-ember

🚫 UNMAINTAINED: A Brunch skeleton for rapid Ember development. Including Ember installation scripts, environment-specific JS builds, generators, and Ember.vim support.
Other
127 stars 19 forks source link

Why jquery-mockjax not picking up in test? #16

Closed millisami closed 10 years ago

millisami commented 10 years ago

Hi @mutewinter , I've been trying to setup the jquery-mockjax But its not intercepting the network requests. I've tried playing with ember-testing-httpRespond, sinonjs.

I think it has something to do with the skeleton or setup thats not picking up. I've been banging my head for long hours to figure this out, but still not working. So calling up for you help on this!!

I've setup the testing app at https://github.com/millisami/postly

Can you pull it and run the test and look for whats I am missing?

millisami commented 10 years ago

Well, after going through various kinds of setup with the same tests using with Karma as runner in different setup, finally realised that it was due to the files not re-compiling properly or taking the changes in-tact.

Had to delete rm -rf public/* couple of times and it got working. So, definitely there is an issue of the files not converting from coffee to js or the refresh the browser still loads the old code.

Has anyone getting into this kind of issue??

mutewinter commented 10 years ago

I have occasionally seen this issue with Brunch in general. It happens to me about once a day. I kill my server and start it, and the error magically goes away. Sometimes it's due to caching issues, other times partial files get loaded. I keep updating to the latest Brunch hoping they fix it someday.

millisami commented 10 years ago

On the same note, @mutewinter I tried to change the title of the app, and for that I'd to edit in the public/index.html file directly and this folder is git-ignored? Is there any setting to control this except the html itself?

mutewinter commented 10 years ago

Actually, the public folder is generated by Brunch whenever cake build or cake server are run. The static assets are pulled from app/assets, which is where index.html is for you to edit :smile:

mutewinter commented 10 years ago

Sounds like this is resolved. Let me know if you've got any other questions.