aboutsummaryrefslogtreecommitdiffstats
path: root/spec/lib/tmail_extensions_spec.rb
diff options
context:
space:
mode:
authorRobin Houston <robin@lenny.robin>2011-06-10 23:39:01 +0100
committerRobin Houston <robin@lenny.robin>2011-06-10 23:39:01 +0100
commit383c2b147b1a1921f893c7202e6ee6bb2427d09e (patch)
treea32a4346261c049b3cd7251e60d42309d6267973 /spec/lib/tmail_extensions_spec.rb
parent91cdb2663d1d39fb1dbd049f795c1800c7e20ddb (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/lib/tmail_extensions_spec.rb')
-rw-r--r--spec/lib/tmail_extensions_spec.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/lib/tmail_extensions_spec.rb b/spec/lib/tmail_extensions_spec.rb
index 41e8c8f4e..c647fe522 100644
--- a/spec/lib/tmail_extensions_spec.rb
+++ b/spec/lib/tmail_extensions_spec.rb
@@ -23,8 +23,7 @@ describe "when using TMail" do
end
it 'should parse multiple to addresses with unqoted display names' do
- example_file = File.join(Spec::Runner.configuration.fixture_path, 'multiple-unquoted-display-names.email')
- mail = TMail::Mail.parse(File.read(example_file))
+ mail = TMail::Mail.parse(load_file_fixture('multiple-unquoted-display-names.email'))
mail.to.should == ["request-66666-caa77777@whatdotheyknow.com", "foi@example.com"]
end