Hey all,

I'm trying to test integration/string test parts of a 3rd party java
application and unfortunately it looks like I have to use fixtures to
initialize the string/integration tests.  Well, it looks like using
fixtures will be easier or at least easier for this group of
developers to follow.  ;(  Anyway, using sequel as my ORM and rspec
1.3 I have done some successful testing of java and DB stored
procedures, but these were closer to unit tests.  Now, I'm doing more
functional testing which will require much more data.  I'd love to use
factories, but like I said this group needs to see the data.  ;(  So,
with the amount of data I have to load into the database int
initialize the testing, I'm stuck using fixtures.  Again, another :(

My questions are:
1)  What is the best way to clean the database of the fixtures?
2) Has anyone used Jeremy's fixture_dependencies with composite
primary keys?  I seem have found a bug in it, maybe when I load
association with composite primary keys.

I get an undefined method 'to_sym' for [:key1, :key2]:Array

pseudo code:

class A < Sequel::Model
  set_primary_key :key1

  one_to_many :bs, :key => :key1
end

class B < Sequel::Model
  set_primary_key [:key1, key2]

  many_to_one :a
end

fixtures

fix1:
  key1: 1
  bs: [sub_fix1, sub_fix2]


sub_fix1:
  a: fix1
  key2: 1

sub_fix2:
  a: fix1
  key2: 2

sorry for the pseudo code.  I can post a gist with the real code if
that will help solve this.

Thanks,

-GregD

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to