Skip to content

Commit

Permalink
Add spec and display more info message on show page
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwr18 committed Nov 20, 2024
1 parent ca1873b commit 62fe1da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/dashboards/organization_dashboard.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class OrganizationDashboard < Administrate::BaseDashboard
created_at
updated_at
upgraded_business_plan_at
whats_app_more_info_message
].freeze

FORM_ATTRIBUTES_EDIT = %i[
Expand Down
2 changes: 2 additions & 0 deletions spec/system/admin/organizations_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@

click_on 'Edit'
fill_in 'Name', with: 'Real name'
fill_in 'Whats app more info message', with: 'More info. Unsubscribe?'
click_on 'Update Organization'

expect(page).to have_text('Organization was successfully updated.')
expect(page).to have_text('Show Real name')
expect(page).to have_content('More info. Unsubscribe?')
end
end
end

0 comments on commit 62fe1da

Please sign in to comment.