On 7 mar, 07:39, MaD <mayer.domi...@gmail.com> wrote:
> you are right. it seems like an error that occurrs after reading your
> yml-file. obviously there are some additional whitespaces/carriage
> returns added to it. but you could just gsub them.

It may not be just the whitespace, because the parser gives different
results on the YML string and the File.read string. Isn't there a
function to quote YML strings? I searched for it, and could not find
it.

> but other than that, one question: why do you want to save a html
> string in a yml-file (and not just read your html file whenever you
> want to)?

I like it this way because I just load the object from the fixture in
my tests.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to