Brent Wheeldon's blog



Brent WheeldonBrent Wheeldon
03/26/2012 NYC Standup
edit Posted by Brent Wheeldon on Monday March 26, 2012 at 07:20AM

Ask for Help

"Has anyone used cucumber for code coverage? We're trying to find dead code."

SimpleCov worked great for rspec, but when used with cucumber introduced a lot of timeouts.

Interesting Things

  • In rspec you can use dot notation as the argument on its calls, for example:
        its(:"items.count") { should == 5 }
    
  • Scrollorama - The jQuery plugin for doing cool scrolly stuff.

Brent WheeldonBrent Wheeldon
NYC Standup 04/29/2011
edit Posted by Brent Wheeldon on Friday April 29, 2011 at 06:10AM

Ask for Help

"Sean asked about git rebase complaining about no changes?"

The suggestion was that it was generally safe to just skip in this situation.

Interesting Things

Brent WheeldonBrent Wheeldon
NYC Standup 04/28/2011
edit Posted by Brent Wheeldon on Thursday April 28, 2011 at 06:12AM

Interesting Things

  • Samantha and Sean found a Vim command called :cucumberunusedsteps which was useful for cleaning out unused steps. It didn't work with some more complicated regexes or steps called from within steps so caution is needed when removing apparently unused steps.

Brent WheeldonBrent Wheeldon
NYC Standup 04/27/2011
edit Posted by Brent Wheeldon on Wednesday April 27, 2011 at 06:19AM

Ask for Help

"Brent and Kris asked if anyone had encountered an after_destroy callback being called twice?"

Few suggestions were check that it was only one object being deleted, that there are no dependent objects being cascade deleted, etc.

"Joe asked about how to set default_url_options for? There are no mailers involved as far as he knew."

Grant suggested trying to set it per class.

"New Lee asked about were there any updates/alternatives for AccessList as the gem is causing him grief with sorting."

Ian knew of an alternative to AccessTree, Lee is still looking.

Interesting Things

  • Jonathon pointed out that background-color: cover and :clipping were useful for playing with background images
  • New Lee brought up that if you're using a form builder on a collection Rails will create a hidden for ID which will always get inserted (and may cause a problem if you're nesting things in a ul or table). To get around this put in a hidden for ID in an appropriate place and Rails will stop generating one.
  • Jonathon ended up being pointed towards Heydown as an alternative to ShowOff for presentations by Davis

Brent WheeldonBrent Wheeldon
NYC Standup 04/26/2011
edit Posted by Brent Wheeldon on Tuesday April 26, 2011 at 06:14AM

Ask for Help

"Jonathan Berger asked if anyone has much experience with ShowOff?"

Davis was going to speak to Jonathan offline.

Interesting Things

  • Joe pointed out the syntax to push remotely was:
git push remote local:remote

Brent WheeldonBrent Wheeldon
NYC Standup 04/25/2011
edit Posted by Brent Wheeldon on Monday April 25, 2011 at 06:37AM

Interesting Things

  • New release of Sass (3.1). Includes the ability to create custom function, introduces an "each" and improves it's colour functions.