search for: automocha

Displaying 3 results from an estimated 3 matches for "automocha".

2006 Sep 03
1
Slimmed down version for inclusion in Rails?
...#39;s what I''m using. The first major patch using them is in RailTies (http://dev.rubyonrails.org/ticket/5970) now. I spoke to DHH today about using it in the other libraries and I think it''ll be ok, but they really want to include as little code as needed. I haven''t used AutoMocha yet. From what I''ve read I don''t think I''ll need it in core. How difficult would it be to pull Mocha and Stubba into their own package for inclusion in Rails? Do either of them depend on AutoMocha? -- Kevin Clark http://glu.ttono.us
2007 Jan 24
0
Mocha 0.4 released
...be effectively overridden by a call to #expects (patch from Tobias Lutke<http://blog.leetsoft.com/> ). - Stubba & SmartTestCase modules incorporated into Mocha module so only need to require ''mocha'' ? no longer need to require ''stubba''. - AutoMocha removed. Thanks to all who contributed. Enjoy :-) I''ve created a mocha_release category on my blog, so if you want notification of new releases you can subscribe to http://blog.floehopper.org/xml/atom/category/mocha_release/feed.xml -- James. http://blog.floehopper.org
2006 Sep 12
4
ActiveRecord Validations - validates_uniqueness_of
Hello, I''m wanting to use Mocha and Stubba for my tests in place of the default Rails testing with fixtures. I have the following class: class Person < ActiveRecord::Base validates_uniqueness_of :email end and am wondering how I can test to ensure that the validates_uniqueness_of validation is running. Any ideas? -Jonathan