Skip to content

Commit

Permalink
Added test for BuildUrlFor
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterTsayun committed Jul 25, 2019
1 parent c0f3e7d commit 8b54d18
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
tests
testBuildUrlFor

| href url |

href := '/remote/eventId.ics'.
url := self calendar buildUrlFor: href.

self assert: 'calendarAuthority' equals: url authority asString.
self assert: '/remote/eventId.ics' equals: url schemeSpecificPart.
self assert: 'https://calendarAuthority/remote/eventId.ics' equals: url asString
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"serverDataWithOffset:" : "TSP 7/25/2019 14:29",
"setUp" : "TSP 7/25/2019 11:14",
"testAddEvent" : "TSP 7/24/2019 18:28",
"testBuildUrlFor" : "TSP 7/25/2019 15:17",
"testCollectHrefsToFetch" : "TSP 7/25/2019 14:53",
"testCreateEvent" : "TSP 7/24/2019 18:23",
"testCreateEventWithRecurrence" : "TSP 7/24/2019 18:23",
Expand Down

0 comments on commit 8b54d18

Please sign in to comment.