Let's say we were creating an API that allows us to create 'foo's. Foos, as far as we know, will have a first name and a title. We can write a request spec to help us drive out our endpoint's behavior
One of my favorite changes in Capybara 2.1 is ignoring all hidden elements by default. This could be viewed as a limiting of Capybara’s feature set, since you can no longer (easily) test certain elements on a page. I will argue that it steers you into writing tests that are more realistic, causing this limitation to actually enhance the quality of your acceptance tests.
Read more »
I’m not a huge fan of Rails view helpers, which is a post for a different day, but put simply I prefer to encapsulate presentation logic in a presenter object rather than mix it in globally across all templates. There’s a few ways to do this, the simplest being the Good Ol’ Plain Ol’ Ruby Object:class FooPresenter def description_for(foo) Date.today.tuesday?
Read more »
Find gems with vulnerabilities
Lightning Talks are next week, but no talks have been submitted yet. Unless talks are submitted, it's going to be a long hour of staring at the wall.
jQuery 1.7 has been released http://blog.jquery.com/2011/11/03/jquery-1-7-released/ . If you use Backbone.js you might want to update jQuery for the improved delegated events performance.
- The Postgres adapter for ActiveRecord will not use an offset unless you also provide a limit.
- Tomorrow Occupy Oakland Is calling for a General Strike. The Port of Oakland, numerous schools, and many other institutions will be shut down, as all their employees will be marching in the streets. Come out in solidarity before, during, or after work. It's gonna be really fun.
Ask for Help
"Rubymine can't call git ls-files in gemspec"
This should have been fixed a while ago in the developer image.
"Anyone built ruby 1.9 from source? I'm not sure what options to configure it with."
Check to see what options RVM is using when it builds 1.9.
- I'm running a blog using ruby 1.8 off a router.