Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove legacy test about asset variant URL including original ID
There are now no attachment types (other than images and their variants) that result in anything other than the 'original' file being uploaded to Asset Manager. Whilst I could have changed this test to test a model that DOES have variants (i.e. ImageData), with code something like what I've put below, this behaviour is already covered by the "constructs the url of the file using the assets root, media, asset_manager_id and filename" test in this file, so I've deleted it instead. ``` asset_path = "path/to/asset.png" model = ImageData.new model.id = 1 model.assets << build(:asset, asset_manager_id: @asset_manager_id, variant: Asset.variants[:s216], filename: "asset_216.png") file = Whitehall::AssetManagerStorage::File.new(asset_path, model, "s216") assert_equal "http://assets-host/media/#{@asset_manager_id}/asset_216.png", file.url ```
- Loading branch information