aboutsummaryrefslogtreecommitdiffstats
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorfrancis <francis>2009-08-05 16:31:10 +0000
committerfrancis <francis>2009-08-05 16:31:10 +0000
commit0610eeb4597138723cce97dcd0c4702a0de0dbcd (patch)
tree73c3c36b700911f41ac5b2be08aee36efd99085b /spec/spec_helper.rb
parent9d3f7b1d205e36768e0910d4748ee913cb8df60f (diff)
Some (as yet unused) profile photo code done on a whim on the train while it
was my birthday.
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 6852909a6..2af585d7a 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -31,6 +31,12 @@ def receive_incoming_mail(email_name, email_to, email_from = 'geraldinequango@lo
RequestMailer.receive(content)
end
+def load_image_fixture(image_name)
+ image_name = File.join(Spec::Runner.configuration.fixture_path, image_name)
+ content = File.read(image_name)
+ return content
+end
+
def rebuild_xapian_index
rebuild_name = File.dirname(__FILE__) + '/../script/rebuild-xapian-index'
Kernel.system(rebuild_name) or raise "failed to launch rebuild-xapian-index"