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.