14 lines
434 B
Ruby
14 lines
434 B
Ruby
require 'rails_helper'
|
|
|
|
RSpec.describe SuperAdmin::SettingsController do
|
|
it 'does not expose a manual refresh action' do
|
|
expect(described_class.action_methods).not_to include('refresh')
|
|
end
|
|
|
|
it 'does not leave a manual refresh link in the settings view' do
|
|
template = Rails.root.join('app/views/super_admin/settings/show.html.erb').read
|
|
|
|
expect(template).not_to include('refresh_super_admin_settings_url')
|
|
end
|
|
end
|