Skip to content

Instantly share code, notes, and snippets.

@floehopper floehopper/count_saves_test.rb Secret
Created Nov 12, 2010

Embed
What would you like to do?
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

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.