Make Admin Notifications translatable
This commit is contained in:
@@ -8,6 +8,11 @@ feature "Admin Notifications" do
|
||||
create(:budget)
|
||||
end
|
||||
|
||||
it_behaves_like "translatable",
|
||||
"admin_notification",
|
||||
"edit_admin_admin_notification_path",
|
||||
%w[title body]
|
||||
|
||||
context "Show" do
|
||||
scenario "Valid Admin Notification" do
|
||||
notification = create(:admin_notification, title: 'Notification title',
|
||||
@@ -180,7 +185,7 @@ feature "Admin Notifications" do
|
||||
notification = create(:admin_notification)
|
||||
visit edit_admin_admin_notification_path(notification)
|
||||
|
||||
fill_in :admin_notification_title, with: ''
|
||||
fill_in :admin_notification_title_en, with: ''
|
||||
click_button "Update notification"
|
||||
|
||||
expect(page).to have_content error_message
|
||||
|
||||
Reference in New Issue
Block a user