spec/concerns/renderable_spec.rb in activity_notification-2.1.4 vs spec/concerns/renderable_spec.rb in activity_notification-2.2.0

- old
+ new

@@ -30,32 +30,32 @@ it "has key configured with embedded params" do expect(I18n.t("notification.#{target_type_key}.#{params_text_key}.text")) .to eq(params_text_original) expect(I18n.t("notification.#{target_type_key}.#{params_text_key}.text", - {article_title: article_title})) + article_title: article_title)) .to eq(params_text_embedded) end it "has key configured with embedded params including group_member_count and group_notification_count" do expect(I18n.t("notification.#{target_type_key}.#{group_text_key}.text")) .to eq(group_text_original) expect(I18n.t("notification.#{target_type_key}.#{group_text_key}.text", - {notifier_name: notifier_name, group_member_count: group_member_count, group_notification_count: group_notification_count})) + **{ notifier_name: notifier_name, group_member_count: group_member_count, group_notification_count: group_notification_count })) .to eq(group_text_embedded) end it "has key configured with plurals" do expect(I18n.t("notification.#{target_type_key}.#{plural_text_key}.text")[:one]) .to eq(plural_text_original_one) expect(I18n.t("notification.#{target_type_key}.#{plural_text_key}.text")[:other]) .to eq(plural_text_original_other) expect(I18n.t("notification.#{target_type_key}.#{plural_text_key}.text", - {article_title: article_title, notifier_name: notifier_name, count: 1})) + **{ article_title: article_title, notifier_name: notifier_name, count: 1 })) .to eq(plural_text_embedded_one) expect(I18n.t("notification.#{target_type_key}.#{plural_text_key}.text", - {article_title: article_title, notifier_name: notifier_name, count: group_notification_count})) + **{ article_title: article_title, notifier_name: notifier_name, count: group_notification_count })) .to eq(plural_text_embedded_other) end end describe "as public instance methods" do @@ -124,6 +124,6 @@ # #render # #partial_path # #layout_path end -end \ No newline at end of file +end