fix mapping spec

This commit is contained in:
Devin Howard 2016-12-16 17:08:57 -05:00
parent c604e69d77
commit 7ca7f0862f
2 changed files with 2 additions and 0 deletions

View file

@ -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

View file

@ -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