From 0c24510682b8ef72976b1997f6e385f7a3e34a98 Mon Sep 17 00:00:00 2001
From: maxwell <maxwell@joindiaspora.com>
Date: Mon, 17 Jan 2011 18:33:30 -0800
Subject: [PATCH] remove an invalid spec

---
 spec/lib/tasks/migrations_spec.rb | 62 -------------------------------
 1 file changed, 62 deletions(-)
 delete mode 100644 spec/lib/tasks/migrations_spec.rb

diff --git a/spec/lib/tasks/migrations_spec.rb b/spec/lib/tasks/migrations_spec.rb
deleted file mode 100644
index 49e281121f..0000000000
--- a/spec/lib/tasks/migrations_spec.rb
+++ /dev/null
@@ -1,62 +0,0 @@
-#   Copyright (c) 2010, Diaspora Inc.  This file is
-#   licensed under the Affero General Public License version 3 or later.  See
-#   the COPYRIGHT file.
-
-require 'spec_helper'
-require File.join(Rails.root, 'lib/hcard')
-require "rake"
-
-describe 'migrations' do
-
-  describe 'absolutify_image_references' do
-    before do
-      @rake = Rake::Application.new
-      Rake.application = @rake
-      Rake.application.rake_require "lib/tasks/migrations", [Rails.root]
-      Rake::Task.define_task(:environment) {}
-
-      @fixture_filename  = 'button.png'
-      @fixture_name      = File.join(File.dirname(__FILE__), '..', '..', 'fixtures', @fixture_filename)
-
-      @photos = []
-      @user = Factory.create(:user)
-
-      5.times do |n|
-        if n % 2 == 0
-          photo = Photo.diaspora_initialize(:user_file => File.open(@fixture_name), :person => @user.person)
-          photo.remote_photo_path = nil
-          photo.remote_photo_name = nil
-        else
-          photo = Photo.new
-          photo.person = Factory(:person, :url => "https://remote.com/")
-          # legacy photo object
-          photo.remote_photo_path = "/uploads/images/"
-          photo.remote_photo_name = "129jcxz09j2103enas0zxc231cxz.png"
-        end
-
-        @photos[n] = photo
-        @photos[n].save!
-      end
-    end
-
-    it 'sets remote_photo_path and remote_photo_name' do
-      @rake['migrations:absolutify_image_references'].invoke
-
-      @photos.each do |photo|
-        photo.reload
-
-        photo.remote_photo_path.should be_true
-        photo.remote_photo_name.should be_true
-        photo.url.match(/$http.*jpg^/)
-      end
-
-      @photos[0].remote_photo_path.should include("http")
-      @photos[1].remote_photo_path.should include("https://remote.com/")
-    end
-
-    it 'is not destructive on a second pass' do
-      pending 'double check'
-    end
-  end
-end
-
-- 
GitLab