All Versions
49
Latest Version
Avg Release Cycle
56 days
Latest Release
994 days ago

Changelog History
Page 1

  • v2.6.2 Changes

    September 04, 2019

    ✨ Enhancement

    • βž• Add Rails 6 Support
  • v2.6.1 Changes

    October 30, 2018

    πŸ”‹ Feature

    • πŸš… Actively support Rails 5.2
    • βž• Add tested support for Ruby 2.4 and 2.5
    • 🀑 When using Rails 5.2 now supports ActiveMocker::Mock.limit(10).delete_all while previous version raised an error, in accordance with it's Rails version.

    βœ‚ Removed

    • βœ‚ Remove tested support for Rails 5.0 (Currently supported 4.2, 5.1, 5.2)
    • βœ‚ Remove support for Ruby 2.1 and 2.2
  • v2.6.0 Changes

    December 01, 2017

    πŸ”‹ Feature

    • Relation#order now accepts all non-SQL arguments

    Example usage:

      User.order('name')
    
      User.order(:name)
    
      User.order(email: :desc)
    
      User.order(:name, email: :desc)
    
      User.order(name: :desc, email: :asc)
    

    ✨ Enhancement

    • πŸ‘Œ Improved output for rake active_mocker:build. When all mocks built successfully the messaging could be misleading.
    • πŸ‘ Error message for calling stubbed methods better formats RSpec syntax for variable names.
    • 🀑 Now whitelist all locally defined methods as safe to copy/run within mock ```ruby
  • v2.5.4 Changes

    November 17, 2017

    πŸ›  Fix

    • has_and_belongs_to_many association did not contain scoped methods.

    ✨ Enhancement

    • Error message when calling stubbed methods show safe_methods syntax along with RSpec syntax.
  • v2.5.3 Changes

    October 01, 2017

    πŸ›  Fix

    • Update gem dependency to fix Macro ActiveMocker.safe_methods when marking class_methods.
  • v2.5.2 Changes

    September 29, 2017

    πŸ”‹ Feature

    • βž• Add mockable class methods to relations.
    • In ActiveRecord model comment Macro ActiveMocker.safe_methods now allow class_methods ruby ActiveMocker.safe_methods(*instance_methods, scopes: [], instance_methods: [], class_methods: [])

    ✨ Enhancement

    • πŸ‘ Better error message when calling mockable method. Shows RSpec syntax to stub method.

      Unknown implementation for mock method: UserMock.new_remember_token
      Stub method to continue.
      
      RSpec:
      allow(
        UserMock
      ).to receive(:new_remember_token).and_return(:some_expected_result)
      

    βœ‚ Removed

    • πŸ—„ ActiveMocker::MockAbilities required by "active_mocker/deprecated_components/mock_abilities"
    • mock_method('ClassName') required by "active_mocker/deprecated_components/rspec" Use active_mocker.mocks.find('ClassName') instead
  • v2.5.1 Changes

    July 21, 2017

    πŸ”‹ Feature

    • πŸ‘Œ Support ActiveRecord v5.1 when generating under that version delete_all does not accept any arguments.
  • v2.5.0 Changes

    March 17, 2017

    πŸ”‹ Feature

    • In comment Macro ActiveMocker.safe_methods(*instance_methods, scopes: [], instance_methods: []) Now accepts scope methods
  • v2.4.4 Changes

    March 10, 2017

    πŸ›  Fix

    • 🀑 Really fix: scope methods returned undefined methodcall_mock_method' for nil:NilClass` for Mocks nested in modules.
  • v2.4.3 Changes

    March 10, 2017

    πŸ›  Fix

    • 🀑 scope methods returned undefined methodcall_mock_method' for nil:NilClass` for Mocks nested in modules.