test/test_tumblr.rb in tumblr-rb-0.1.1 vs test/test_tumblr.rb in tumblr-rb-1.0.0
- old
+ new
@@ -107,9 +107,18 @@
auth = Tumblr::Authenticator.new('test@testermcgee.com','dontrevealmysecrets').authenticate
assert_respond_to tumbl, :authenticate
assert tumbl.authenticate.is_a? Weary::Request
assert_equal auth.uri, tumbl.authenticate.uri
end
+
+ test 'executes' do
+ cred = {:email => 'test@testermcgee.com', :password => 'dontrevealmysecrets'}
+ response = VCR.with_cassette('write/write') do
+ Tumblr.execute(cred, 'Hello World.')
+ end
+ assert response.is_a? Weary::Response
+ assert response.success?
+ end
end
describe 'Reader' do
test 'sets up credentials for authentication' do
reader = Tumblr::Reader