Moved to new syntax.

This commit is contained in:
Martin Edenhofer 2016-07-18 01:25:16 +02:00
parent b6f7858dd5
commit 39479171a7

View file

@ -223,7 +223,7 @@ class CalendarSubscriptionTest < ActiveSupport::TestCase
calendar_subscriptions = CalendarSubscriptions.new(agent1) calendar_subscriptions = CalendarSubscriptions.new(agent1)
ical_file = calendar_subscriptions.all ical_file = calendar_subscriptions.all
cals = Icalendar.parse(ical_file) cals = Icalendar::Calendar.parse(ical_file)
assert_equal(cals.count, 1) assert_equal(cals.count, 1)
cal = cals.first cal = cals.first
assert_equal(cals.count, 1) assert_equal(cals.count, 1)
@ -272,7 +272,7 @@ class CalendarSubscriptionTest < ActiveSupport::TestCase
calendar_subscriptions = CalendarSubscriptions.new(agent1) calendar_subscriptions = CalendarSubscriptions.new(agent1)
ical_file = calendar_subscriptions.all ical_file = calendar_subscriptions.all
cals = Icalendar.parse(ical_file) cals = Icalendar::Calendar.parse(ical_file)
assert_equal(cals.count, 1) assert_equal(cals.count, 1)
cal = cals.first cal = cals.first
assert_equal(cals.count, 1) assert_equal(cals.count, 1)
@ -322,7 +322,7 @@ class CalendarSubscriptionTest < ActiveSupport::TestCase
calendar_subscriptions = CalendarSubscriptions.new(agent2) calendar_subscriptions = CalendarSubscriptions.new(agent2)
ical_file = calendar_subscriptions.all ical_file = calendar_subscriptions.all
cals = Icalendar.parse(ical_file) cals = Icalendar::Calendar.parse(ical_file)
assert_equal(cals.count, 1) assert_equal(cals.count, 1)
cal = cals.first cal = cals.first
assert_equal(cals.count, 1) assert_equal(cals.count, 1)
@ -367,7 +367,7 @@ class CalendarSubscriptionTest < ActiveSupport::TestCase
calendar_subscriptions = CalendarSubscriptions.new(agent2) calendar_subscriptions = CalendarSubscriptions.new(agent2)
ical_file = calendar_subscriptions.all ical_file = calendar_subscriptions.all
cals = Icalendar.parse(ical_file) cals = Icalendar::Calendar.parse(ical_file)
assert_equal(cals.count, 1) assert_equal(cals.count, 1)
cal = cals.first cal = cals.first
assert_equal(cals.count, 1) assert_equal(cals.count, 1)