Permalink
Browse files

Updating VCR methods. Tests are failing in ruby 1.9.1 in rvm. FakeWeb…

… issues?
  • Loading branch information...
1 parent aea0ddb commit 3d7ccac50b8ef07cddb24b10e059485a9c6acc6f @mwunsch mwunsch committed Apr 11, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/test_tumblr.rb
View
@@ -118,7 +118,7 @@ class TestTumblr < Test::Unit::TestCase
test 'executes' do
cred = {:email => 'test@testermcgee.com', :password => 'dontrevealmysecrets'}
- response = VCR.with_cassette('write/write') do
+ response = VCR.use_cassette('write/write') do
Tumblr.execute(cred, 'Hello World.')
end
assert response.is_a? Weary::Response
@@ -253,7 +253,7 @@ class TestTumblr < Test::Unit::TestCase
test 'gets all the posts for a username' do
reader = Tumblr::Reader.new('test@testermcgee.com','dontrevealmysecrets')
- posts = VCR.with_cassette('read/authenticated') do
+ posts = VCR.use_cassette('read/authenticated') do
reader.get_all_posts('mwunsch')
end
assert_equal 66, posts.count

0 comments on commit 3d7ccac

Please sign in to comment.