Last active
October 10, 2016 15:26
-
-
Save thiagoa/5c42360a81083d7441f01c549045fbfc to your computer and use it in GitHub Desktop.
Twitter Widget - First feature test.rb
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
# 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