test/smile_test.rb in smile-0.4.1 vs test/smile_test.rb in smile-0.4.3
- old
+ new
@@ -5,11 +5,11 @@
before do
# this resets the config to the base state before every test
Smile::Base.clear_config!
Smile::Base.configure do |config|
- # config.logger_on = true
+ config.logger_on = true
end
@smug = Smile::Smug.new
@smug.auth_anonymously
end
@@ -32,11 +32,11 @@
tests 'album and photo checks' do
test( 'checking to see if we have some albums', ['album']) do
@smug.albums( :nick_name => 'kleinpeter' )
end
- test( 'we can reload albums from the site', ['album']) do
+ test( 'we can reload albums from the site', ['album', 'reload']) do
album = @smug.albums( :nick_name => 'kleinpeter' ).first
old_title = album.title
album.title = 'foo'
album.reload!
old_title == album.title
@@ -52,10 +52,10 @@
photo = album.photos.first
album.album_id == photo.album.album_id &&
album.key == photo.album.key
end
- test( 'we can reload photos from the site', ['photo']) do
+ test( 'we can reload photos from the site', ['photo', 'reload']) do
album = @smug.albums( :nick_name => 'kleinpeter' ).first
photo = album.photos.first
old_url = photo.tinyurl
photo.tinyurl = 'foo'
photo.reload!