January 2011
Jan 26th
2 tags
Testing Scopes in Rails3
A while back there seemed to be this secret programming war going on… how do we test named_scopes? It came down to the type of tester that you were. You could build out the ActiveRecord objects you needed and assert that when the scope was called, the correct objects were returned. Or you could call the scope and assert that the #proxy_options (conditions) you expected to be passed were...
Jan 18th
11 notes
1 tag
Which RVM gemset am I on?
So jumping back and forth around the command line on different projects has made me constantly double check where I am at. Mostly because I’ve fallen a few times to the ‘oops, I installed that gem in the wrong gemset’ conundrum. Usually that is not a problem unless you’re working with some gems that have to build to the system. Anyway, I decided to solve this problem! ...
Jan 12th
2 notes
1 tag
Which RVM gemset am I on?
So jumping back and forth around the command line on different projects has made me constantly double check where I am at. Mostly because I’ve fallen a few times to the ‘oops, I installed that gem in the wrong gemset’ conundrum. Usually that is not a problem unless you’re working with some gems that have to build to the system. Anyway, I decided to solve this problem! ...
Jan 11th
Jan 6th
1 tag
After reading some comments about a presentation of mine that randomly popped up on hackernews… I now feel I should watch my own presentations for pointers on how to improve. You know, just like watching your own football videos. Your highschool football coach made you do that too, right?
Jan 4th
3 notes
2 tags
ruby-debug19 / linecache19 won't build *grrr*
This is more of a reminder to myself but if you’re having this trouble too… have at this little nugget of knowledge. Does your linecache19 take a big dookie on your command line? Well if it won’t build… this will probably do it. gem install ruby-debug19 -- --with-ruby-include=$rvm_path/src/<your_ruby19_version>/ Hope that helped.
Jan 4th
1 note