All Versions
49
Latest Version
Avg Release Cycle
56 days
Latest Release
1303 days ago
Changelog History
Page 1
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.
- Update gem dependency to fix Macro
-
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_methodsruby 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" Useactive_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
- In comment Macro
-
v2.4.4 Changes
March 10, 2017π Fix
- π€‘ Really fix: scope methods returned
undefined method
call_mock_method' for nil:NilClass` for Mocks nested in modules.
- π€‘ Really fix: scope methods returned
-
v2.4.3 Changes
March 10, 2017π Fix
- π€‘ scope methods returned
undefined method
call_mock_method' for nil:NilClass` for Mocks nested in modules.
- π€‘ scope methods returned