tag:blogger.com,1999:blog-12467669.post115929980266605952..comments2023-04-29T07:23:25.825-04:00Comments on Jay Fields' Thoughts: Test::Unit test creationJayhttp://www.blogger.com/profile/14491442812573747680noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-12467669.post-1159726884974530412006-10-01T14:21:00.000-04:002006-10-01T14:21:00.000-04:00re: rspec and mocha. What's happening in the short...re: rspec and mocha. What's happening in the short term is that rspec is enhancing it's own mocking framework to support class level mocking/stubbing. Expect that in a release in the next week or so.<BR/><BR/>At the same time, we're working out a plugin model that any framework can use to plug itself into rspec. That should be available soon as well, at which point you'll be able to chose between rspec's built in mocking/stubbing and mocha/stubba, flexmock, et al. Even if those frameworks don't ship w/ the plug needed to plug into rspec, it should be easy enough for you to write your own connector at that point (and/or contribute one to the framework of your choosing).<BR/><BR/>Of course, all of that is theoretical at this point ;)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-12467669.post-1159726250087813172006-10-01T14:10:00.000-04:002006-10-01T14:10:00.000-04:00@Pat, I haven't tried since there are known issues...@Pat, I haven't tried since there are known issues that James Mead is working on. I'm on both the RSpec & Mocha mailing lists and both camps are interested in working together. I expect the issues to be resolved very soon. At which time I expect to write about how wonderful RSpect is. ;)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-12467669.post-1159724588324861912006-10-01T13:43:00.000-04:002006-10-01T13:43:00.000-04:00Jay, what problems do you get using RSpec with Moc...Jay, what problems do you get using RSpec with Mocha?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-12467669.post-1159353135357104062006-09-27T06:32:00.000-04:002006-09-27T06:32:00.000-04:00@Pat, Using RSpect would actually be my preference...@Pat, Using RSpect would actually be my preference, but it doesn't currently work well with Mocha.<BR/><BR/>@tea42, We also considered that option, but didn't like the idea of arbitrary test names. We thought about generating the test names also, but never found a syntax that seemed superior.<BR/><BR/>@Dan, I don't understand the question, sorry.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-12467669.post-1159332267924695402006-09-27T00:44:00.000-04:002006-09-27T00:44:00.000-04:00Was there a particular reasoning as to why aspects...Was there a particular reasoning as to why aspects where better?Dan Nugenthttps://www.blogger.com/profile/17024579990613770367noreply@blogger.comtag:blogger.com,1999:blog-12467669.post-1159327102106898012006-09-26T23:18:00.000-04:002006-09-26T23:18:00.000-04:00Hmmm... interesting. This might have been a nice c...Hmmm... interesting. This might have been a nice choice:<BR/><BR/><BR/> test 'add returns the sum of two numbers'<BR/> def test01<BR/> assert_equal 4 do<BR/> add(2,2)<BR/> end<BR/> end<BR/><BR/><BR/>The method name could be anything, but would act as a unique tag, as opposed to the description.tea42https://www.blogger.com/profile/02848516783203845093noreply@blogger.comtag:blogger.com,1999:blog-12467669.post-1159311558593692142006-09-26T18:59:00.000-04:002006-09-26T18:59:00.000-04:00Why not just use rspec then?Why not just use rspec then?Anonymousnoreply@blogger.com