Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
update rspec for backend
  • Loading branch information
Thomas Lecavelier committed Oct 16, 2013
1 parent 84b93ec commit 0c912ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/controllers/backend_controller_spec.rb
Expand Up @@ -273,7 +273,7 @@
media_object = MetaWeblog::Structs::MediaObject.new(
"name" => Digest::SHA1.hexdigest("upload-test--#{Time.now}--") + ".gif",
"type" => "image/gif",
"bits" => Base64.encode64(File.open(File.expand_path(::Rails.root.to_s) + "/public/images/powered.gif", "rb") { |f| f.read })
'bits' => Base64.encode64((::Rails.root + 'app' + 'assets' + 'images' + 'powered.gif').read)
)

args = [ 1, 'henri', 'whatever', media_object ]
Expand Down

0 comments on commit 0c912ae

Please sign in to comment.