diff options
author | Francis Irving <francis@mysociety.org> | 2010-07-14 01:12:29 +0100 |
---|---|---|
committer | Francis Irving <francis@mysociety.org> | 2010-07-14 01:12:29 +0100 |
commit | d82960021cbe2c4501be1012e2d040b76c728e23 (patch) | |
tree | 4c67a4abeb1105e78a5fca3d33168a3322e15702 /spec/spec_helper.rb | |
parent | 55a4eb4e26992eb77c4d89f41846607a59357c73 (diff) |
Get picture posting to work
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index ddb9ab14b..127d10dbe 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -31,8 +31,12 @@ def receive_incoming_mail(email_name, email_to, email_from = 'geraldinequango@lo RequestMailer.receive(content) end +def file_fixture_name(file_name) + return File.join(Spec::Runner.configuration.fixture_path, file_name) +end + def load_file_fixture(file_name) - file_name = File.join(Spec::Runner.configuration.fixture_path, file_name) + file_name = file_fixture_name(file_name) content = File.read(file_name) return content end |