Skip to content

Add unit tests for Decorator, InvocationTracker, and NewConstructor#1798

Open
hammadxcm wants to merge 1 commit intothoughtbot:mainfrom
hammadxcm:add-decorator-specs
Open

Add unit tests for Decorator, InvocationTracker, and NewConstructor#1798
hammadxcm wants to merge 1 commit intothoughtbot:mainfrom
hammadxcm:add-decorator-specs

Conversation

@hammadxcm
Copy link
Copy Markdown
Contributor

Summary

  • Add unit tests for FactoryBot::Decorator, FactoryBot::Decorator::InvocationTracker, and FactoryBot::Decorator::NewConstructor
  • These tightly coupled classes previously had no corresponding unit test files
  • Batched into one PR since InvocationTracker and NewConstructor both inherit from Decorator

Test plan

  • bundle exec rspec spec/factory_bot/decorator_spec.rb spec/factory_bot/decorator/invocation_tracker_spec.rb spec/factory_bot/decorator/new_constructor_spec.rb passes (15 examples, 0 failures)
  • bundle exec standardrb passes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant