Skip to content

Instantly share code, notes, and snippets.

@floehopper
Created November 12, 2010 11:35
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save floehopper/9e878e24c14be26d081d to your computer and use it in GitHub Desktop.
describe '.pull' do
it "should end up with 3 posts" do
FakeWeb.clean_registry
FakeWeb.register_uri(:get, %r|http://mock.tumblr.com/api/read|, :response => "tumblr_posts.xml")
Shrk.expects(:create_or_update).times(3)
Shrk.pull
end
end
@floehopper
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment