Jay Fields

Ruby: method_missing alternativesa


over 10 years ago by Jay Fields on Jay Fields Thoughts.
I love the value that method_missing provides; unfortunately, sometimes I get into trouble when I abuse the power Matz has bestowed upon me. If you&apos...

TextMate: Required Reading


over 10 years ago by Jay Fields on Jay Fields Thoughts.
If you spend much time developing in TextMate I'd highly suggest picking up the TextMate book. I've gotten through about 25% so far and already...

Testing: Refactoring Examples


over 10 years ago by Jay Fields on Jay Fields Thoughts.
I recently gave a talk at RailsConf 2007 about testing. During the talk I put several ideas on the table and encouraged the audience to ask questions and...

Testing: Replace Collaborator with Stub


over 10 years ago by Jay Fields on Jay Fields Thoughts.
If you've done much testing I'm sure you've been annoyed by cascading failures. Cascading failures are most often a symptom of tests that...

Testing: Unit Test or Functional Test


over 10 years ago by Jay Fields on Jay Fields Thoughts.
A common question when adding a new class is: Do I need a Unit test or Functional test?The answer: Yes.I'm not sure why, but there seems to be a common...

Testing: When are Unit tests enough?


over 10 years ago by Jay Fields on Jay Fields Thoughts.
I recently received the question: When are Unit tests enough. More specifically, when is it unnecessary to create a Functional test.I think the case is...

Testing: Replace Mock with Stub


over 10 years ago by Jay Fields on Jay Fields Thoughts.
I often hear the phrase: I remember when I thought Mocks were the silver bullet. In fact, I remember using Mocks like they were the silver bullet. Unfortunately...

Testing: One assertion per test


over 10 years ago by Jay Fields on Jay Fields Thoughts.
Limiting your tests to using one assertion is a controversial topic. I originally stumbled upon the idea on Dave Astels' blog. I liked the style of...

Testing: Inline Setup


over 10 years ago by Jay Fields on Jay Fields Thoughts.
In order to have an effective test suite, you must have a maintainable test suite. Only if the test suite is maintainable will all members of the team...

RailsConf Europe 2007: Presenter Pattern


over 10 years ago by Jay Fields on Jay Fields Thoughts.
My talk on Extending Rails to Use the Presenter Pattern was accepted for RailsConf Europe.See you in Berlin...