Skip to content

Fix profiles factory

Rafael Reggiani Manzo requested to merge fix_unit_test_bad_seed into master

The RSpec seed 34224 was failling: ./spec/controllers/profiles_controller_spec.rb:168

You can check with: rspec --exclude-pattern "spec/integration/**/*_spec.rb" --seed 34224

This is because the Profile equality operator checks just for id. Thus independent sequences were leading to equal ids.

Creating a factory inheritance enables to remove duplications and ensure there is a unique sequence generating ids.

Merge request reports