undo changes in introduced by merge conflicts in the api branch
This commit is contained in:
parent
16b242fa0f
commit
8d690a9e33
5 changed files with 4 additions and 9 deletions
|
|
@ -54,12 +54,7 @@ class PhotoService
|
|||
end
|
||||
|
||||
def update_profile_photo(photo)
|
||||
profile_params = {
|
||||
image_url: photo.url(:thumb_large),
|
||||
image_url_medium: photo.url(:thumb_medium),
|
||||
image_url_small: photo.url(:thumb_small)
|
||||
}
|
||||
@user.update_profile(profile_params)
|
||||
@user.update_profile(photo: photo)
|
||||
end
|
||||
|
||||
def send_to_streams(photo, photo_params)
|
||||
|
|
|
|||
|
|
@ -166,7 +166,7 @@ shared_examples_for "migration scenarios with local user rename" do
|
|||
block = FactoryGirl.create(:block, user: old_user)
|
||||
notification = FactoryGirl.create(:notification, recipient: old_user)
|
||||
report = FactoryGirl.create(:report, user: old_user)
|
||||
authorization = FactoryGirl.create(:auth_with_read, user: old_user)
|
||||
authorization = FactoryGirl.create(:auth_with_read_scopes, user: old_user)
|
||||
share_visibility = FactoryGirl.create(:share_visibility, user: old_user)
|
||||
|
||||
run_migration
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ describe Api::V1::CommentsController do
|
|||
FactoryGirl.create(:auth_with_default_scopes)
|
||||
}
|
||||
|
||||
let!(:access_token) { auth.created_at_access_token.to_s }
|
||||
let!(:access_token) { auth.create_access_token.to_s }
|
||||
let!(:access_token_public_only) { auth_public_only.create_access_token.to_s }
|
||||
let!(:access_token_minimum_scopes) { auth_minimum_scopes.create_access_token.to_s }
|
||||
let(:invalid_token) { SecureRandom.hex(9) }
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
|
||||
|
|
@ -146,6 +146,7 @@ RSpec.configure do |config|
|
|||
|
||||
config.include JSON::SchemaMatchers
|
||||
config.json_schemas[:archive_schema] = "lib/schemas/archive-format.json"
|
||||
config.json_schemas[:archive_schema] = ArchiveValidator::SchemaValidator::JSON_SCHEMA
|
||||
config.json_schemas[:api_v1_schema] = "lib/schemas/api_v1.json"
|
||||
|
||||
JSON::Validator.add_schema(
|
||||
|
|
|
|||
Loading…
Reference in a new issue