[openstreetmap/openstreetmap-website] Microcosms microcosms (PR #3683)

Brian DeRocher notifications at github.com
Wed Sep 21 00:34:55 UTC 2022


@openbrian commented on this pull request.



> +    # arrange
+    site_name = "site_name"
+    site_url = "https://example.com"
+    m = create(:microcosm)
+    # act
+    m.set_link(site_name, site_url)
+    # assert
+    ml = MicrocosmLink.find_by(:microcosm_id => m.id, :site => site_name)
+    assert_equal ml.url, site_url
+  end
+
+  def test_set_link_that_already_exists
+    # arrange
+    m = create(:microcosm)
+    site_name = "site_name"
+    site_url_old = "https://example1.com"

done

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/3683#discussion_r975916553
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/3683/review/1114609894 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20220920/4468a67b/attachment.htm>


More information about the rails-dev mailing list