diff options
author | Robin Houston <robin@lenny.robin> | 2011-07-29 05:09:48 +0100 |
---|---|---|
committer | Robin Houston <robin@lenny.robin> | 2011-07-29 05:09:48 +0100 |
commit | 62f863d6fbae6dc4922964b2530f151883ca2180 (patch) | |
tree | 8f0d431920357a233ca94bcbd2a44b1113330055 /spec/spec_helper.rb | |
parent | 642a3f74b7036383dd326584e411f98eb463cc0c (diff) | |
parent | 3ba811a9e576a50123930ccccda4dc01d5e3341e (diff) |
Merge branch 'master' into wdtk
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 5e6d9ec4a..42c5ff6bf 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -13,6 +13,7 @@ config['ADMIN_PASSWORD'] = 'baz' # tests assume 20 days config['REPLY_LATE_AFTER_DAYS'] = 20 + # Uncomment the next line to use webrat's matchers #require 'webrat/integrations/rspec-rails' @@ -26,6 +27,7 @@ Spec::Runner.configure do |config| # in your config/boot.rb config.fixture_path = RAILS_ROOT + '/spec/fixtures/' + # == Fixtures # # You can declare fixtures for each example_group like this: @@ -144,3 +146,12 @@ if $tempfilecount.nil? puts "WARNING: HTML validation script " + $html_validation_script + " not found" end end + +def load_raw_emails_data(raw_emails) + raw_email = raw_emails(:useless_raw_email) + begin + raw_email.destroy_file_representation! + rescue Errno::ENOENT + end + raw_email.data = load_file_fixture("useless_raw_email.email") +end |