I think I figured this out...
This has something to do with the file format or encoding.
If I create an identical project in Linux, identical database tables
then the testing works flawlessly. As soon as I copy that project to a
windows environment, my testing fails again.
Can I not do Rails development in Windows?
Yes, you can of course. When you say "copy that project" do you
convert from Unix "\n" line endings to DOS/Windows "\r\n" line
endings in all your source and YAML files?
I've not explored this fully, but YAML depends on layout, which
to some extent depends on what is an end-of-line sequence. So I
think your Unix YAML files may possibly fail on Windows. But I've
run no tests of this, it may be more resilient. _Why is way more
clever than I am.
The nature of the failure may be something of a clue... Ah, not
sure that seen this below....
> > and now I am trying to load a fixture into that table:
> > version_control_book:
> > id: 1
[indentation comment below [trimmed] applies...]
> > title: Pragmatic Version Control
> > description: How to use version control
> > image_url: sk_svn_small.jpg
> > price: 29.95
> > date_available: 2005-01-26 00:00:00
> > however, I ALWAYS receive errors on the parameters as if they are
> > being parsed like directories:
> > 1) Error:
> > default_test(ProductTest):
> > Errno::ENOENT: No such file or directory - Pragmatic Version Control
I don't see why a string would be processed as a directory.
Anything useful from poking about in the stack trace?
> > I have no idea what I am doing wrong. Has anyone got some ideas?
> I'm not sure if this explains this error though. Just a thought.
> Michael Glaesemann
> grzm seespotcode net