Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Tests passing via selenium

  • Loading branch information...
commit 0b3f1d34f80a05f4f27b6bd4a60e39f653c37f5a 1 parent 97b85f4
@adarsh authored
View
4 app/views/pages/homepage.html.erb
@@ -13,8 +13,8 @@
});
</script>
-<input type="text"/>
-<button>Submit</button>
+<input type="text" id="Search"/>
+<button id="search_button">Submit</button>
<ul id="results">
<% if @tweets %>
View
1  features/find_tweets_by_hashtag.feature
@@ -3,6 +3,7 @@ Feature: Find tweets by hashtag
As a user
I should be able to search for a hashtag
+ @javascript
Scenario: Show the tweets for a given hashtag
When I go to the homepage
And I enter "rails" in the search field
View
2  features/step_definitions/tweet_steps.rb
@@ -4,7 +4,7 @@
When /^I enter "([^"]*)" in the search field$/ do |hashtag|
fill_in "Search", with: hashtag
- click_button "Search"
+ click_button "search_button"
end
Then /^I should see tweets with "([^"]*)"$/ do |hashtag|
Please sign in to comment.
Something went wrong with that request. Please try again.