Corey InnisCorey Innis
Standup 12/28/2007
edit Posted by Corey Innis on Friday December 28, 2007 at 08:42PM

Interesting Things

  • Rails Bug: Test::Unit seems to be broken in Rails 2.0.2 when using multiple levels of test classes (i.e. inheritance). Trunk is fixed, so Rails 2.0.3 will be fine.
  • Chad wrote a small utility for checking/comparing Rails versions which wraps the version checking part of rubygems. This, of course, requires that your Rails project uses at least one gem... that's a pretty good bet.

    The basic technique:

    have = Rails::VERSION::STRING
    requirement = '=1.99.1'
    Gem::Version::Requirement.new([requirement]).satisfied_by?(Gem::Version.new(have))
    
  • One pivot is having trouble finding a rogue puts statement in a gem somewhere. The suggestion comes a bit late in this case, but adding some breadcrumbs may help next time:

    puts "#{__FILE__}:#{__LINE__} find me!"
    

Ask for Help

  • Does anyone have details regarding Google Maps API developer permissions? Localhost-to-localhost requests work fine, but we need to test things between machines (actually, a virtual machine client and virtual machine host).

Comments

  1. Dr Nic Dr Nic on December 29, 2007 at 04:04AM

    puts "#{caller} hi there" seems to be effective too.

    Now I'm going to trial the following in my test_helper.rb's:

    def puts str
      super caller
      super str
    end
    
    def p str
      super caller
      super str
    end
    

    Thanks for the ideas.

  2. Brennan Brennan on December 29, 2007 at 11:37AM

    . One pivot is having trouble finding a rogue puts statement in a gem somewhere. The suggestion comes a bit late in this case, but adding some breadcrumbs may help next time:

    grep?