Fix rspec tests (broken)

I'm trying to fix failing CI tests, and am following the steps
given here in "Controller specs":
https://github.com/plataformatec/devise/wiki/How-To:-Test-controllers-with-Rails-3-and-4-(and-RSpec)

I am getting the following error:
[path to ...]/ruby/gems/2.1.0/gems/factory_girl-4.4.0/lib/factory_girl.rb:73:in
`lint': The following factories are invalid:
(FactoryGirl::InvalidFactoryError)

* krikri_users
    from [path to ...]/ruby/gems/2.1.0/gems/dpla-map-4.0.0.0.pre.5/lib/dpla/map/factories.rb:115:in
`block (2 levels) in <top (required)>'
    from
[path to ...]/ruby/gems/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core/example.rb:322:in
`instance_exec'
    from
[path to ...]/ruby/gems/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core/example.rb:322:in
`instance_exec'
    from
[path to ...]/ruby/gems/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core/hooks.rb:350:in
`run'
[ ... ]