Needs to be implemented in CourseBlockViewController and CourseContentPageViewController. The page view controller should use the URL from its current block.
– This will be added as a UIBarButtonItem (with FontAwesome.ShareSquareO) in the navigationItem for each controller. Tapping the button will use the courseQuerier to fetch the webURL for the current block and then open it via UIApplication openURL:
Unit tests should verify:
– Tap view on web triggers call on UIApplication with expected URL, verify this by instantiating one with the test course content, mocking [[UIApplication sharedApplication] openURL:]
– Disable button if course content is not loaded. Two cases:
— Content won't load: Create a content view with a block id that's not in the test CourseOutline structure.
— Content loads eventually: Verify disabled until content loads.