Merge pull request #989 from metamaps/fix/travis

fix travis
This commit is contained in:
Devin Howard 2016-12-16 17:16:32 -05:00 committed by GitHub
commit 33fc27ffd1
3 changed files with 3 additions and 0 deletions

View file

@ -22,3 +22,4 @@ script:
addons:
code_climate:
repo_token: 479d3bf56798fbc7fff3fc8151a5ed09e8ac368fd5af332c437b9e07dbebb44e
postgresql: "9.4"

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