Created
December 18, 2012 21:01
-
-
Save jasonong/4331960 to your computer and use it in GitHub Desktop.
Check for a disabled link with Capybara + Rspec.
This file contains hidden or 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
scenario 'I should see user soft delete button disabled' do | |
within("#user_#{@user.id}") do | |
page.should have_link I18n.t('soft_destroyed'), disabled: true | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
disabled - is an invalid option for
have_link