Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Neff <benjamin@coding4coffee.ch>2022-08-01 00:10:38 +0300
committerBenjamin Neff <benjamin@coding4coffee.ch>2022-08-01 00:12:00 +0300
commit9485a0263985a5c2a41446e020e02c2accabc2bb (patch)
tree01bf7a345b4cc80009586c8832ff2a5fdb905a8a /spec/helpers/notifications_helper_spec.rb
parent02eba842aed40e6411fbed8db9e32fcd0e59c642 (diff)
parenteaedd3d26ca7e993e42fba02bc4e4fc5e72ae73e (diff)
Merge branch 'next-minor'v0.7.18.0
Diffstat (limited to 'spec/helpers/notifications_helper_spec.rb')
-rw-r--r--spec/helpers/notifications_helper_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/helpers/notifications_helper_spec.rb b/spec/helpers/notifications_helper_spec.rb
index dea069ef6..bfffc8f1a 100644
--- a/spec/helpers/notifications_helper_spec.rb
+++ b/spec/helpers/notifications_helper_spec.rb
@@ -128,13 +128,13 @@ describe NotificationsHelper, type: :helper do
let(:notification) { Notifications::ContactsBirthday.create(recipient: alice, target: bob.person) }
it "contains the date" do
- bob.profile.update_attributes(birthday: Time.zone.today)
+ bob.profile.update(birthday: Time.zone.today)
link = object_link(notification, notification_people_link(notification))
expect(link).to include(I18n.l(Time.zone.today, format: I18n.t("date.formats.fullmonth_day")))
end
it "doesn't break, when the person removes the birthday date" do
- bob.profile.update_attributes(birthday: nil)
+ bob.profile.update(birthday: nil)
link = object_link(notification, notification_people_link(notification))
expect(link).to include(I18n.l(Time.zone.today, format: I18n.t("date.formats.fullmonth_day")))
end