diff options
author | Robin Houston <robin@lenny.robin> | 2011-06-10 23:39:01 +0100 |
---|---|---|
committer | Robin Houston <robin@lenny.robin> | 2011-06-10 23:39:01 +0100 |
commit | 383c2b147b1a1921f893c7202e6ee6bb2427d09e (patch) | |
tree | a32a4346261c049b3cd7251e60d42309d6267973 /spec/spec_helper.rb | |
parent | 91cdb2663d1d39fb1dbd049f795c1800c7e20ddb (diff) |
Move the non-fixture files in spec/fixtures to their own subdirectory,
so that we can run rake spec:db:fixtures:load without it choking on
the files that aren't fixtures.
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index c6e894584..6439a0f19 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -56,7 +56,7 @@ end # XXX No idea what namespace/class/module to put this in def receive_incoming_mail(email_name, email_to, email_from = 'geraldinequango@localhost') - email_name = File.join(Spec::Runner.configuration.fixture_path, email_name) + email_name = file_fixture_name(email_name) content = File.read(email_name) content.gsub!('EMAIL_TO', email_to) content.gsub!('EMAIL_FROM', email_from) @@ -64,7 +64,7 @@ def receive_incoming_mail(email_name, email_to, email_from = 'geraldinequango@lo end def file_fixture_name(file_name) - return File.join(Spec::Runner.configuration.fixture_path, file_name) + return File.join(Spec::Runner.configuration.fixture_path, "files", file_name) end def load_file_fixture(file_name) |