Skip to content
This repository has been archived by the owner on Sep 25, 2020. It is now read-only.

No fixtures support #1

Closed
Pickachu opened this issue Mar 10, 2011 · 2 comments
Closed

No fixtures support #1

Pickachu opened this issue Mar 10, 2011 · 2 comments

Comments

@Pickachu
Copy link

Any possibility of adding a support for auto serialization on fixtures?

By example:

Model:

# alien.rb
class Alien
    marshaled :meta
end

Fixture:

# alien.yml        
zim:
    name: Invader
    meta: {planet: => irk}    # Fails here, it serializes on yaml form, not Marshal

I could not find any workaround for this, since the rails yaml (1.0) does not support binary types.

@fnando
Copy link
Owner

fnando commented Mar 10, 2011

What about Factory Girl or equivalent? That will do, but you'll add an external dependency, not a big deal.

@Pickachu
Copy link
Author

No problem with extra dependencies.
The issue was regarding fixtures.

I'll migrate to factories very soon.
Thanks for the fast answer.

@fnando fnando closed this as completed Oct 15, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants