Created
November 29, 2013 09:35
-
-
Save cintrzyk/7703477 to your computer and use it in GitHub Desktop.
Publish test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it 'should make publish' do | |
visit edit_lead_catcher_path(unpublished_lead_cat, format: :js) | |
find('.title', text: 'Settings').click | |
find('input[name=publish]').should_not be_checked | |
check 'publish' | |
click_link 'save' | |
wait_for_ajax | |
expect(unpublished_lead_cat.published).to be | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment