Skip to content
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

Update test event title and add comment #83

Merged
merged 1 commit into from
Nov 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions test/models/calendar_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
class CalendarTest < ActiveSupport::TestCase
def setup
@event = Event.create(
'name' => "Toronto Ruby's One Year Anniversary",
'name' => 'Witty Event Name',
'location' => '<div>Some Office</div>',
'rsvp_link' => 'https://test.com',
'description' => '<div>DESCRIPTION</div>',
Expand All @@ -18,7 +18,8 @@ def setup

test 'ical_time produces the correct time' do
want = DateTime.parse('2024-11-25T19:30-05:00').to_i
got = @calendar.send(:ical_time, @event.start_at)
assert_same(want, got.to_i)
# Yes, we're testing a private method...
got = @calendar.send(:ical_time, @event.start_at).to_i
assert_same(want, got)
end
end