aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancis Irving <francis@mysociety.org>2009-12-07 11:03:14 +0000
committerFrancis Irving <francis@mysociety.org>2009-12-07 11:03:14 +0000
commit7c60d1e6247d1f509187d810aa10cd95ad65c56b (patch)
tree613cfc1adeffe670406a455cef617212a6ec2c2d
parente44f7b53a99996cea69bd925c0e32a54b128a092 (diff)
Comment what bug this is testing.
-rw-r--r--spec/models/raw_email_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/models/raw_email_spec.rb b/spec/models/raw_email_spec.rb
index 65780baed..80a4e7c44 100644
--- a/spec/models/raw_email_spec.rb
+++ b/spec/models/raw_email_spec.rb
@@ -12,6 +12,9 @@ describe User, "manipulating a raw email" do
@raw_email.data.should == "Hello, world!"
end
+ # 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!