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: {
|
post :create, params: {
|
||||||
mapping: valid_attributes
|
mapping: valid_attributes
|
||||||
}
|
}
|
||||||
|
mapping.updated_by = controller.current_user
|
||||||
expect(comparable(Mapping.last)).to eq comparable(mapping)
|
expect(comparable(Mapping.last)).to eq comparable(mapping)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -5,6 +5,7 @@ FactoryGirl.define do
|
||||||
yloc 0
|
yloc 0
|
||||||
map
|
map
|
||||||
user
|
user
|
||||||
|
association :updated_by, factory: :user
|
||||||
association :mappable, factory: :topic
|
association :mappable, factory: :topic
|
||||||
|
|
||||||
factory :mapping_random_location do
|
factory :mapping_random_location do
|
||||||
|
|
Loading…
Add table
Reference in a new issue