Last active
October 3, 2016 18:03
-
-
Save thiagoa/7afb5d25306695c888f6877d9996217a to your computer and use it in GitHub Desktop.
Stub timeline example
This file contains hidden or 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
result = stub_result( | |
status: :ok, | |
tweets: [ | |
‘screen_name’ => ‘joe’, | |
‘text’ => ‘Hi @bob, I am Joe!’, | |
‘mentions’ => [‘bob’], | |
‘created_at’ => Time.new(2016, 1, 1) | |
] | |
) | |
stub_timeline(id: ‘joe’, returns: result) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment