ActiveMocker v1.7 Release Notes
Release Date: 2014-10-14 // over 9 years ago-
โจ Enhancement
- โช Now will regenerate mock after
rake db:rollback
. - ๐ Check added to see if mock was created with same running gem version of ActiveMocker. If they are not the same it will raise an error informing you to run
rake active_mocker:build
. - belong_to and has_one relationships when assigned will in most cases assign it's self to the corresponding has_many or like association. See
test_rails_4_app/spec/active_record_compatible_api.rb
for supported detail of supported ActiveRecord features. - A class that Inherits a model now has the table of the parent.
- Use this option if you need to modify where the mock generation hooks into.
ActiveMocker::Config.model_base_classes = %w[ ActiveRecord::Base ]
- ๐ When running
rake active_mocker:build
it will display the number of mocks that failed. - ๐คก Exceptions in mock generation no longer halt the rest of the mocks from generating.
- โ Add explicit message of what to do when a method is unimplemented.
- ๐ฒ Will create own log file
log/active_mocker.log
it will be cleared on each generation. - Attributes, associations, and scopes will now inherit from their parent class.
โ Removed
- ๐
ActiveMocker::Mock::Config.experimental
flag has been removed, these are now on by default. - โ Remove deprecated option
ActiveMocker.mock
- โ Remove Experimental feature reload
- Remove experimental flag for set foreign_key on collection for has_many, belongs_to, and has_one.
- โช Now will regenerate mock after