Created
June 5, 2014 16:14
-
-
Save stevepm/6a85cae2cc4d358792c7 to your computer and use it in GitHub Desktop.
bootstrap-wsywig5
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
require 'spec_helper' | |
feature 'User Profile' do | |
scenario 'a user can view their comments', js: true do | |
mock_gem | |
mock_gem('rails') | |
log_in | |
within '#most_downloaded' do | |
click_link 'faraday' | |
end | |
page.execute_script("editor.composer.commands.exec('insertHTML', 'This is bongos, indeed.');") | |
click_on 'Comment' | |
click_on 'user_profile' | |
expect(page).to have_content('faraday') | |
expect(page).to have_content('This is bongos, indeed.') | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment