Month: March 2006

  • Single Fixtures declaration for Selenium on Rails

    When testing out a complex website, replicating the |open|/selenium/setup?fixtures=x| line would be painful! So, Add a const at the beginning of the setup_controller in Selenium Plugin at ./vendor/plugins/selenium_on_rails/lib/controllers/selenium_controller.rb: Also alter #setup as so : New lines are 6-9, and the change on 10 from referencing params[] to the local var fixtures. Then, use this in…

  • Mr Yuk Happy 35th!

    This is Poison Control Week, Mar 19-25, 2006. Since Mr. Yuk was conceived in 1971, this makes it Mr. Yuk’s Birthday! Poison Prevention.org

  • 1 – Strategy Pattern

    The Strategy Pattern really resolves to “composition” in practice. This OO technique says to take components that could change at runtime and encapsulate them in their own objects. The master-object is then “composed” of instances of the dependent clasess. Example: Produces: So now handle the en-user request to have ducks with different flap : Now…