Skip to content

Instantly share code, notes, and snippets.

@stevepm
Created June 5, 2014 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevepm/6a85cae2cc4d358792c7 to your computer and use it in GitHub Desktop.
Save stevepm/6a85cae2cc4d358792c7 to your computer and use it in GitHub Desktop.
bootstrap-wsywig5
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