Project

General

Profile

« Previous | Next » 

Revision 3ab56604

Added by Ondřej Pražák almost 6 years ago

Fixes #23918 - Find correct scope when updating taxonomy

View differences:

test/controllers/api/v2/organizations_controller_test.rb
response = JSON.parse(@response.body)
assert_equal "Missing one of the required permissions: create_organizations", response['error']['details']
end
test "should add location to organization" do
organization = FactoryBot.create(:organization)
location = FactoryBot.create(:location)
put :update, params: { :id => organization.id, :organization => { :location_ids => [location.id] } }
assert_response :success
assert_contains organization.locations, location
end
end

Also available in: Unified diff