Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

David Chelimsky's latest activity

Saturday, July 17 2010
5139 Remove !new_record? requirement from ActiveRecord::Base#== was updated in Ruby on Rails
  • David Chelimsky
    • Assigned user changed from Yehuda Katz (wycats) to José Valim
    by David Chelimsky at 2:37 PM
  • David Chelimsky
    • Assigned user changed from Jeremy Kemper to Yehuda Katz (wycats)
    by David Chelimsky at 2:37 PM
  • David Chelimsky
    • Assigned user set to Jeremy Kemper
    by David Chelimsky at 2:37 PM
  • David Chelimsky
    David Chelimsky created the ticket at 2:36 PM
    class Thing < ActiveRecord::Base; end
    
    assert_equal Thing.new, Thing.new
    
    # fails with 
    #   <#<Thing id: nil, created_at: nil, updated_at: nil>> expected but w...
Wednesday, July 14 2010
5111 Hide test_unit generators when other frameworks are assigned as test_framework was created in Ruby on Rails
  • David Chelimsky
    David Chelimsky created the ticket at 1:25 PM

    Given this in a Railtie:

    config.generators.test_framework   :rspec
    

    When I run script/rails generate
    Then I get the following output

    ...
    Please choose a gener...
Wednesday, July 07 2010
5061 ActionView::TestCase does not initialize helpers contra actual ActionView Beh... was updated in Ruby on Rails
Tuesday, June 22 2010
4932 Make view a formal API in action view test case was created in Ruby on Rails
  • David Chelimsky
    David Chelimsky created the ticket at 4:18 PM

    In ActionView::TestCase::Behavior, change _view to view (leaving _view as an alias, perhaps deprecated). It is generally useful for creating stubs, etc (see ht...

4931 View Test Case _assigns is locked on first reference to _view was created in Ruby on Rails
  • David Chelimsky
    David Chelimsky created the ticket at 4:15 PM

    Example:

    _view.stubs(:current_user).returns(@user)
    @foo = 'bar'
    render :template => "some/template.html.erb"
    

    In this case, the @foo variable is expected to be...