This may have turned up in the RSS feeds of many of you already, but for those who haven''t seen it yet, looks intersting: <http://errtheblog.com/post/7708>> The main problem with fixtures, for me, has always been how unfun > they are. They literally suck the fun out of anything they?re > around. You throw them in your test/ directory, then suddenly > testing is, like, work. But it?s not work, dammit. This is Ruby, > dammit. >Cheers, Wincent
Thusfar, my experience with stubbing and mocking has not been a walk in the park either. Hopefully this will change when rspec''s mocking and stubbing matures some more. Fixtures have always been a source of anger for many railers because they slow down tests, rely on the database and are hard to maintain. On 8/10/07, Wincent Colaiuta <win at wincent.com> wrote:> This may have turned up in the RSS feeds of many of you already, but > for those who haven''t seen it yet, looks intersting: > > <http://errtheblog.com/post/7708> > > > The main problem with fixtures, for me, has always been how unfun > > they are. They literally suck the fun out of anything they''re > > around. You throw them in your test/ directory, then suddenly > > testing is, like, work. But it''s not work, dammit. This is Ruby, > > dammit. > > > > Cheers, > Wincent > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
On 8/10/07, Lance Carlson <lancecarlson at gmail.com> wrote:> Thusfar, my experience with stubbing and mocking has not been a walk > in the park either. Hopefully this will change when rspec''s mocking > and stubbing matures some more.Please elaborate. What new features are you expecting rspec''s mocking framework to adopt?
On Aug 10, 2007, at 10:01 AM, David Chelimsky wrote:> On 8/10/07, Lance Carlson <lancecarlson at gmail.com> wrote: >> Thusfar, my experience with stubbing and mocking has not been a walk >> in the park either. Hopefully this will change when rspec''s mocking >> and stubbing matures some more. > > Please elaborate. What new features are you expecting rspec''s mocking > framework to adopt?I would really like to see better support for anonymous functions + and what they execute. I''ve posted several emails now about spec''ing anonymous functions and have gotten no replies. I think the fixture problem has been the mutability of data while doing TDD/BDD. When you change a field name, do you end up changing 6 fixture records field names? What about if you change the data that a model should have? This is the real advantage to generating the fixture data in ruby - it allows more rapid BDD. Scott