diff options
| author | Louise Crow <louise.crow@gmail.com> | 2015-05-22 15:46:43 +0100 | 
|---|---|---|
| committer | Louise Crow <louise.crow@gmail.com> | 2015-05-22 17:11:17 +0100 | 
| commit | 3f45c033cb46b24f69b88e6705557e4c077ecd9b (patch) | |
| tree | 8b2f575cc83e27587ddc6748fcd229690277cbbc /spec | |
| parent | 4a4190d6c595294b0681be110ebe15df5af12e35 (diff) | |
Remove obsolete test
We don't write the data for a raw email to the database anymore.
It's written to a file.
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/models/raw_email_spec.rb | 23 | 
1 files changed, 4 insertions, 19 deletions
diff --git a/spec/models/raw_email_spec.rb b/spec/models/raw_email_spec.rb index aa82b0bc3..e1533b981 100644 --- a/spec/models/raw_email_spec.rb +++ b/spec/models/raw_email_spec.rb @@ -7,7 +7,8 @@  require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') -describe User, "manipulating a raw email" do  +describe User, "manipulating a raw email" do +      before do          @raw_email = RawEmail.new          incoming_message = mock_model(IncomingMessage) @@ -16,28 +17,12 @@ describe User, "manipulating a raw email" do          @raw_email.stub!(:incoming_message).and_return(incoming_message)      end -    it 'putting data in comes back out' do  +    it 'putting data in comes back out' do          @raw_email.data = "Hello, world!"          @raw_email.save!          @raw_email.reload          @raw_email.data.should == "Hello, world!"      end -    # TODO: this test fails, hopefully will be fixed in later Rails. -    # Doesn't matter too much for us for storing raw_emails, it would seem, -    # but keep an eye out. - -    # This is testing a bug in Rails PostgreSQL code -    # http://blog.aradine.com/2009/09/rubys-marshal-and-activerecord-and.html -    # https://rails.lighthouseapp.com/projects/8994/tickets/1063-binary-data-broken-with-postgresql-adapter -#    it 'putting data in comes back out even if it has a backslash in it' do  -#        @raw_email.data = "This \\ that" -#        @raw_email.save! -#        @raw_email.reload -#        $stderr.puts @raw_email.data -#        $stderr.puts "This \\ that" -#        @raw_email.data.should == "This \\ that" -#    end -  end -  +  | 
