Skip to content

Commit

Permalink
Update test event title and add comment (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
crespire authored Nov 20, 2024
1 parent d5d1de5 commit d95db64
Showing 1 changed file with 4 additions and 3 deletions.
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

0 comments on commit d95db64

Please sign in to comment.