After Josh adds the Twitter gem and re-runs the rspec test in the twitter app tutorial (I think it’s the fourth video), it’s green (i.e. zero failures) for him, but that’s not what happens for me. I get this error and I could really use some help.
- Search twitter for a term searching by a hashtag
Failure/Error: click_button ‘Search’
undefined method `search’ for Twitter:Module
./spec/integration/search_twitter_spec.rb:7:in `block (2 levels) in <top (required)>’
Finished in 0.31379 seconds
1 example, 1 failure
rspec ./spec/integration/search_twitter_spec.rb:4 # Search twitter for a term searching by a hashtag
Randomized with seed 15673
Coverage report generated for RSpec to /home/jacqueline/thoughtbot/hashtag2/coverage. 9 / 9 LOC (100.0%) covered.
➜ hashtag2 git:(master) ✗