Skip to content

Instantly share code, notes, and snippets.

@BRIMIL01
Created March 26, 2011 07:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BRIMIL01/888104 to your computer and use it in GitHub Desktop.
Save BRIMIL01/888104 to your computer and use it in GitHub Desktop.
def test_twitter_send
update_text = "Test Twitter Text"
Twitter.expects(:configure)
u = Factory(:user)
a = Factory(:authorization, :user => u)
log_in(u, a.uid)
fill_in "text", :with => update_text
check("tweeted")
click_button "Share"
assert_match /Update created/, page.body
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment