-
-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include full address in ical event #1036
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,14 @@ def address | |
"#{street} #{house_number}, #{zip} #{city}" | ||
end | ||
|
||
def calendar_event_address | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To ensure that this feature will work in the future when the code base changes. Could you please add a test for this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I added tests for this method here: https://github.com/rughh/on_ruby/pull/1036/files#diff-6b1dfa85c752473d93705b0802618ae524932f70ab05aee4f936f06886f2299dR46 |
||
if [street, house_number, zip, city].all?(&:present?) | ||
address | ||
else | ||
name | ||
end | ||
end | ||
|
||
def nice_url | ||
URI.parse(url).host | ||
end | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To ensure that this feature will work in the future when the code base changes. Could you please add a test for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need explicit tests for this or would the smoke testing in the events controller specs surfice, given that we already have the calendar event address test?