Skip to content

Instantly share code, notes, and snippets.

@thiagoa
Last active October 10, 2016 15:26
Show Gist options
  • Save thiagoa/5c42360a81083d7441f01c549045fbfc to your computer and use it in GitHub Desktop.
Save thiagoa/5c42360a81083d7441f01c549045fbfc to your computer and use it in GitHub Desktop.
Twitter Widget - First feature test.rb
# spec/features/twitter_timeline_spec.rb
require 'feature_helper'
RSpec.feature 'twitter timeline' do
scenario 'a user views a twitter timeline' do
visit root_path
within '[data-twitter-app]' do
within '[data-tweets]' do
expect(page).to have_css '.tweet', minimum: 2
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment