Skip to content
Snippets Groups Projects
Commit 7de85c1f authored by Allen Gilliland's avatar Allen Gilliland
Browse files

reset 'latitude' column to its proper state.

parent 9b59cd4b
No related branches found
No related tags found
No related merge requests found
......@@ -55,11 +55,12 @@
;; ## PUT /api/meta/field/:id
;; Check that we can update a Field
;; TODO - this should NOT be modifying a field from our test data, we should create new data to mess with
(expect-eval-actual-first
(match-$ (sel :one Field :id (field->id :venues :latitude))
{:description nil
:table_id (table->id :venues)
:special_type "latitude"
:special_type "fk"
:name "LATITUDE"
:updated_at $
:active true
......@@ -69,8 +70,8 @@
:preview_display true
:created_at $
:base_type "FloatField"})
(let [result ((user->client :rasta) :put 200 (format "meta/field/%d" (field->id :venues :latitude)) {:special_type :latitude})]
(let [result ((user->client :rasta) :put 200 (format "meta/field/%d" (field->id :venues :latitude)) {:special_type "fk"})]
;; this is sketchy. But return the Field back to its unmodified state so it won't affect other unit tests
(upd Field (field->id :venues :latitude) :special_type nil)
(upd Field (field->id :venues :latitude) :special_type "latitude")
;; return the modified Field
result))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment