Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Display more info from each tweet

  • Loading branch information...
commit fffa157ea4f203f6a930bdafd8401902e492bf68 1 parent b8e063b
Joshua Clayton authored
2  app/views/tweets/show.html.erb
View
@@ -1,5 +1,5 @@
<ul class='tweets'>
<% @tweets.each do |tweet| %>
- <li><%= tweet.text %></li>
+ <li><%= tweet.text %> <%= tweet.from_user_name %></li>
<% end %>
</ul>
8 features/search_twitter.feature
View
@@ -11,9 +11,9 @@ Feature: Search twitter by hashtag
@javascript
Scenario: User views metadata for each tweet
Given Twitter returns the following tweets for the search term "#rails":
- | text |
- | I love #rails |
- | Thoughtbot is awesome #rails |
- | nyc > boston #rails |
+ | text | from_user_name |
+ | I love #rails | Josh |
+ | Thoughtbot is awesome #rails | Blake |
+ | nyc > boston #rails | Steve |
When I search for the hashtag "rails"
Then I should see 3 tweets
Please sign in to comment.
Something went wrong with that request. Please try again.