expect(rendered).tohave_link'Registration Features Program'
expect(rendered).not_tohave_link'Enable Service Ping and register for this feature.'
end
context'user has an active license'do
beforedo
assign(:license,create(:license))
render
end
it('renders registration features prompt with activation link')do
expect(rendered).tohave_link'Enable Service Ping and register for this feature.',href: metrics_and_profiling_admin_application_settings_path(anchor: 'js-usage-settings')
expect(rendered).tohave_link'Registration Features Program'
expect(rendered).not_tohave_link'Enable Service Ping and register for this feature.'
end
context'user has an active license'do
beforedo
assign(:license,create(:license))
render
end
it('renders registration features prompt with activation link')do
expect(rendered).tohave_link'Enable Service Ping and register for this feature.',href: metrics_and_profiling_admin_application_settings_path(anchor: 'js-usage-settings')