commit
33fc27ffd1
3 changed files with 3 additions and 0 deletions
|
@ -22,3 +22,4 @@ script:
|
|||
addons:
|
||||
code_climate:
|
||||
repo_token: 479d3bf56798fbc7fff3fc8151a5ed09e8ac368fd5af332c437b9e07dbebb44e
|
||||
postgresql: "9.4"
|
||||
|
|
|
@ -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