spec/models/reminder_spec.rb in mr_common-1.1.0 vs spec/models/reminder_spec.rb in mr_common-1.2.0
- old
+ new
@@ -73,13 +73,13 @@
expect(reminder.valid?).to eq true
end
end
describe ".time_zone_options" do
- it "is an alias to ActiveSupport::TimeZone::MAPPING.values.sort" do
- expected = ActiveSupport::TimeZone::MAPPING.values.sort
- actual = MrCommon::Reminder.time_zone_options
- expect(actual).to eq expected
+ it "is a subset of TZInfo::Timezone.all names" do
+ expected = TZInfo::Timezone.all.collect(&:name)
+ actual = MrCommon::Timezone.time_zone_options
+ expect(actual - expected).to be_empty
end
end
end
end