Just curious - now that rspec (as of 0.9) let''s you choose your mock framework, how many of you are actually using (or planning to use) mocha or flexmock? Anybody planning to use any other mock framework besides rspec, mocha or flexmock? Thanks, David
I think we may move to FlexMock in near future with new projects. It is similar to RSpec''s built in frameworks but a bit more flexible to my mind. Unfortunately I have no experience with Mocha. On 07/05/07, David Chelimsky <dchelimsky at gmail.com> wrote:> Just curious - now that rspec (as of 0.9) let''s you choose your mock > framework, how many of you are actually using (or planning to use) > mocha or flexmock? > > Anybody planning to use any other mock framework besides rspec, mocha > or flexmock?-- This was freedom. Losing all hope was freedom. Chasing the beauty in programming: www.ruby-lang.org | www.rubyonrails.org
I''ve got tons of code using the rspecs mocks. I won''t be switching to mocha or flex any time soon. Micah Martin 8th Light, Inc. 8thlight.com On May 7, 2007, at 6:43 AM, David Chelimsky wrote:> Just curious - now that rspec (as of 0.9) let''s you choose your mock > framework, how many of you are actually using (or planning to use) > mocha or flexmock? > > Anybody planning to use any other mock framework besides rspec, mocha > or flexmock? > > Thanks, > David > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20070507/0759dd8a/attachment-0001.html
I''ve never used another mocking framework besides RPecs'', I''ve got no reason to switch actually. On 5/7/07, Micah Martin <micah at 8thlight.com> wrote:> I''ve got tons of code using the rspecs mocks. I won''t be switching to mocha > or flex any time soon. > > Micah Martin > 8th Light, Inc. > 8thlight.com > > > > > > On May 7, 2007, at 6:43 AM, David Chelimsky wrote: > > Just curious - now that rspec (as of 0.9) let''s you choose your mock > framework, how many of you are actually using (or planning to use) > mocha or flexmock? > > Anybody planning to use any other mock framework besides rspec, mocha > or flexmock? > > Thanks, > David > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
On 5/7/07, David Chelimsky <dchelimsky at gmail.com> wrote:> Anybody planning to use any other mock framework besides rspec, mocha > or flexmock?We have some tests written in test/unit and using Mocha, but we were planning on converting it all to rspec (including rspec mocks) eventually. Maybe we''ll consider using Mocha for that code, if it makes the conversion go more smoothly. -- Nick
On 5/7/07, nicholas a. evans <nick at ekenosen.net> wrote:> On 5/7/07, David Chelimsky <dchelimsky at gmail.com> wrote: > > Anybody planning to use any other mock framework besides rspec, mocha > > or flexmock? > > We have some tests written in test/unit and using Mocha, but we were > planning on converting it all to rspec (including rspec mocks) > eventually. Maybe we''ll consider using Mocha for that code, if it > makes the conversion go more smoothly.I am echoing this. Most of my tests are in RSpec, but some legacy ones remain from before I learned about RSpec. Those Test::Unit ones used mocha/stubba. When I convereted over to rspec, I lamented my loss. Now that it is back, I rejoice! I''ll finally be able to convert the remainder of the tests. Ed> > -- > Nick > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-- Ed Howland http://greenprogrammer.blogspot.com
I''m considering using Mocha + Mocha Shot. http://rubyforge.org/projects/mocha-shot There are some things that are in Rspec''s mocking framework that are missing in Mocha though. For example, in spec/mock, #and_return takes a block that gets executed and accepts the arguments passed to the method. Oh well, I guess nothing is "perfect" :) On 5/7/07, David Chelimsky <dchelimsky at gmail.com> wrote:> > Just curious - now that rspec (as of 0.9) let''s you choose your mock > framework, how many of you are actually using (or planning to use) > mocha or flexmock? > > Anybody planning to use any other mock framework besides rspec, mocha > or flexmock? > > Thanks, > David > _______________________________________________ > rspec-devel mailing list > rspec-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-devel >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20070513/063b475a/attachment.html