Category Archives: JavaScript

Using Jasmine with Rails 4.1

I had a few problem getting fixtures to work within a Jasmine environment. I was getting the error “ReferenceError: loadFixtures is not defined” The fixture was an html pages at spec/javascripts/fixtures/form.html, and this was my initial test code: describe("Rollback prompt", … Continue reading

Posted in JavaScript, Ruby | Comments Off on Using Jasmine with Rails 4.1

Using json data outside the original JavaScript function

I’ve been working on a Reckoner that helps people calculate some figures. I started by hard coding some threshold figures into the JavaScript while I worked on most of the functionality. However, once that was done, I needed to modify … Continue reading

Posted in JavaScript, Ruby | Comments Off on Using json data outside the original JavaScript function