Skip to content

Instantly share code, notes, and snippets.

@procload
Created January 18, 2012 19:34
Show Gist options
  • Save procload/1635079 to your computer and use it in GitHub Desktop.
Save procload/1635079 to your computer and use it in GitHub Desktop.
should 'be able to send a message to all users' do
within('.sectionSidebar') do
assert page.has_content?('Send to All Users')
assert page.has_content?('Targeted Users')
end
check 'Send to All Users'
visit edit_admin_message_path(@message)
within('.sectionSidebar') do
assert page.find(".send-to-all").checked?
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment