HTTPS clone URL
Subversion checkout URL
Please sign in to comment.
Fix order dependent AP test
any_instance.stubs + unstub with Mocha doesn't restore the original status in the following case, so we need to undef Customer#to_json before every test require 'test/unit' require 'mocha/setup' module M def foo() :foo; end end class C include M undef_method :foo end C.any_instance.stubs(:foo).returns(:mocha) C.any_instance.unstub(:foo)
- Loading branch information...
Showing with 1 addition and 0 deletions.