Getting Ember set up with Jasmine and Rails 4 is tricky. I’ve done the hard part and set up a skeleton Rails app that contains a passing Ember model test as a starting point for your apps. Feel free to fork the repo and start a project if you want to use Jasmine to test your Ember app. For more detail about how to get it working, and a pretty thorough run through of some high- and low-level Ember concepts, read on.
I’d like to offer Nicole Sullivan a public apology for dismissing her work. But first, a bit of back story.
I’ve finally gotten around to putting my recent talk on Triaging Rails Issues on my speakerdeck page. The slides are extremely terse, though, and it will probably be easier to follow by watching the video of my talk, embedded here. (Thanks to Dave...Continue reading…
I often find myself wondering why so many of the Ruby native string and array methods have aliases. For example, with string methods, we have
succ, which are equivalent; they both return the next alphanumeric character. Like so:
1.9.3p194 :024 > string = "a" => "a" 1.9.3p194 :025 > string.next => "b" 1.9.3p194 :026 > string => "a" 1.9.3p194 :027 > string.succ => "b"
So why do we need both? Continue reading…
At work, we’ve been moving away from Cucumber tests for the past number of months, in favor of the more robust Capybara and rspec paring. Given that I’m a relative novice in Rails test-driven development, the supposed brittleness of Cucumber tests wasn’t immediately clear to me, so I did some digging, and came up with a few posts that talk about the pitfalls of the “imperative” style of step writing for user stories. Continue reading…