Skip to content

Commit

Permalink
chore: perform clean-up before invoking test
Browse files Browse the repository at this point in the history
  • Loading branch information
naqvis committed Dec 13, 2024
1 parent ff9985a commit a7f76e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/controllers/asset_types_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ module PlaceOS::Api

describe "index", tags: "search" do
it "should return json when get request is invoked" do
PlaceOS::Model::Asset.clear
PlaceOS::Model::AssetType.clear
asset = PlaceOS::Model::Generator.asset.save!
params = HTTP::Params.encode({"zone_id" => asset.zone_id.to_s})
path = "#{AssetTypes.base_route}?#{params}"
Expand Down

0 comments on commit a7f76e2

Please sign in to comment.