A blog about using the Ruby on Rails web application framework to get stuff done as a web developer. New content every few weeks.
Link: everydayrails.com
Write tests to test functionality you’re pretty confident works because you’ve been using it for awhile without tests. This is a good way to learn because, if a test fails, it’s apt to be due to your test and not your code. Try to write as many cases as you can to test as many nuances...
Everyday Rails Testing with RSpec: Updates for April, 2013 April 24, 2013 Last week I released another round of updates to Everyday Rails Testing with RSpec , and subsequently released a couple of minor updates since. For those of you who may have missed it: This is it, the final upda...
Diary of a Rails rescue project, part 2: Testing April 16, 2013 As mentioned previously , I’ve been spending spare cycles getting an outdated Rails application up to speed. Aside from the outdated versions of Rails and pretty much every gem used by the app, there’s a glaring problem: ...
That said, early Rails books and tutorials focused more on speed (build a blog in 15 minutes!) than on good practices like testing. If testing were covered at all, it was generally reserved for a chapter toward the end. Newer works on Rails have addressed this shortcoming, and now dem...
Everyday Rails Testing with RSpec, the book now covers Capybara 2.0, RSpec's new syntax, and more February 13, 2013 Hey everyone, thanks again to all of you who have purchased Everyday Rails Testing with RSpec . I hope it’s gotten you on your way to better-tested apps. Sales have been...
If you’ve been using Reek to help in refactoring your Rails applications , you might run across warnings of Irresponsible Modules — that is, code with no comments to help explain what it does. A common knock on the Rails community is that we don’t document our code. I hate to admit it...
Rescue projects are unique challenges. Chances are, you’re working with someone else’s code. (Or maybe you’re working with your own code, but it’s been so long you don’t remember the work or it represents a former self’s skill set.) If a project hasn’t been touched in awhile, you may ...
? I mean it’s not done yet, but I wanted to go ahead and get the book out there for people to start reading. (If you’ve ever purchased a beta book from Pragmatic Programmers you know what I’m talking about.) I’ve got updated versions of the original RSpec articles from this blog in pl...