spec/mocks/user_mock.rb in active_mocker-1.2.pre.9 vs spec/mocks/user_mock.rb in active_mocker-1.2.pre.10
- old
+ new
@@ -1,7 +1,7 @@
require 'active_mocker/mock_requires'
-Object.send(:remove_const, 'UserMock') if class_exists? 'UserMock'
+Object.send(:remove_const, 'UserMock') if ActiveMocker.class_exists? 'UserMock'
class UserMock < ::ActiveHash::Base
include ActiveMocker::ActiveHash::ARApi
include ActiveMocker::MockInstanceMethods
extend ActiveMocker::MockClassMethods