fix mapping spec
This commit is contained in:
parent
c604e69d77
commit
7ca7f0862f
2 changed files with 2 additions and 0 deletions
|
@ -24,6 +24,7 @@ RSpec.describe MappingsController, type: :controller do
|
|||
post :create, params: {
|
||||
mapping: valid_attributes
|
||||
}
|
||||
mapping.updated_by = controller.current_user
|
||||
expect(comparable(Mapping.last)).to eq comparable(mapping)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -5,6 +5,7 @@ FactoryGirl.define do
|
|||
yloc 0
|
||||
map
|
||||
user
|
||||
association :updated_by, factory: :user
|
||||
association :mappable, factory: :topic
|
||||
|
||||
factory :mapping_random_location do
|
||||
|
|
Loading…
Reference in a new issue