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.

August Lilleaas's latest activity

Tuesday, June 01 2010
4745 Hard setting path_parameters in functional tests for monkey patching friendli... was created in Ruby on Rails
  • August Lilleaas
    August Lilleaas created the ticket at 2:40 PM

    ActionController::TestRequest#assign_parameters should hard set path_parameters. This is so that monkey patchers can safely override methods and use params (or ...

Sunday, May 30 2010
4730 Hashes with Time instances in it breaks when to_json is called on it. was updated in Ruby on Rails
  • August Lilleaas
    August Lilleaas commented at 12:22 PM

    @Neeraj Singh: Perhaps you have the json gem vendored elsewhere, or directly in the Gemfile, causing Rails to use that one instead of the bundled one? I'm also ...

  • August Lilleaas
    August Lilleaas created the ticket at 1:59 AM

    Hashes with time objects in them will cause an error when to_json is called on it.

    {:date => Time.utc(2008, 5, 17)}.to_json
    

    The stack trace is rather peculiar...

Saturday, May 29 2010
4726 HashWithIndifferentAccess#to_json will raise a SystemStackError: stack level ... was updated in Ruby on Rails
  • August Lilleaas
    August Lilleaas commented at 7:02 PM

    For the record, a quick and dirty temporary fix while we wait for a proper one:

    class ActiveSupport::HashWithIndifferentAccess
      def to_json(*args, &block)
       ...
  • August Lilleaas
    August Lilleaas created the ticket at 6:58 PM

    Calling to_json on an instance of ActiveSupport::HashWithIndifferentAccess will raise a SystemStackError: stack level too deep.

    There is a issue filed in the is...

Monday, March 16 2009
2060 Installation Of MiniUnit Causes Test To Fail was updated in Ruby on Rails
  • August Lilleaas
    August Lilleaas commented at 1:14 PM

    Do you need some particular version of mocha to be able to run the tests now? I'm experiencing something very similar (http://pastie.org/417598) on the latest e...

Friday, March 13 2009
1740 Set the names of the methods Active Record generates for attributes. was updated in Ruby on Rails
Wednesday, March 04 2009
2125 Fixture ID and String#hash in 1.9.1 was updated in Ruby on Rails
  • August Lilleaas
    August Lilleaas commented at 2:12 PM

    Take a look at this pastie:

    http://pastie.org/407108

    As you can see, the implementation of String#hash has changed significantly since 1.8, and is indeed differ...

  • August Lilleaas
    August Lilleaas created the ticket at 1:44 PM

    An example from my terminal:

    Terminal output

    It seems like the output of String#hash varies from process to process. This means that the ID that the foxy fixtures generates (w...

2124 Testing "post :destroy" without the default routes. was created in Ruby on Rails
  • August Lilleaas
    August Lilleaas created the ticket at 12:24 PM

    Please disregard this ticket. The tests were correct, the destroy wants params[:id], which I didn't provide.

    When you leave out the map.connect ':controller/:ac...