Justin Richard's blog
Interesting##
If you're using Jasmine to test your JavaScript code and you miss the shared examples functionality you used in RSpec, you can achieve the same result by just using a plain old function. Name your function something like "mySharedBehavior" and call it in each of your describe blocks that share the behavior. Jasmine will execute the function and print your results just as if you repeated all the shared examples in each of your describe blocks. Be careful not to modify the scope of the function that contains your shared examples (Jasmine needs to control the scope).
Help
What remote screen sharing or VNC clients are people using for remote pairing?
Chad described his optimal remote pairing setup in 2008, but since then Apple removed the ability to do true full-screen sharing in the included Screen Sharing application with the 10.5.8 update. We've been looking for other solutions since. Apple's Remote Desktop does this, but it gets expensive on a per seat basis and isn't focused on solving our simple use case.
We're interested in finding out what you're using? Do you have a favorite VNC client?
Interesting
Pivotal's Pulse is now open source. It's a nice big view of the state of your multiple CI builds. Check out our public projects here: ci.pivotallabs.com
Refraction was updated to v0.2.0. It's a testable replacement for mod_rewrite that's implemented as Rack middle ware.
Calling #destroy on an ActiveRecord instance associated through a has_many relationship removes it from the database, but not the collection. #delete removes it from the collection and database, but you don't get the before and after callbacks.
Interesting
Interesting
The XMPP and Jabber Technologies meetup is tonight at Pivotal's office, 6:00pm.
Interesting
- Speed up your tests that use Paperclip by putting the following in your spec_helper.rb. In a new project's test suite this alone reduced the full suite run time from 25 to 5 seconds.
class Paperclip::Attachment def post_process; end end
- If you want to run Spork to speed up your tests, but aren't running on a Ruby platform that supports Kernel.fork (like windows or JRuby) then Roger Pack's Spork fork might work for you.
