Skip to content

Commit

Permalink
Don't rely on is_paranoid itself to do the setup tasks.
Browse files Browse the repository at this point in the history
  • Loading branch information
chewi committed Apr 21, 2010
1 parent e6b2617 commit 238eca6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/is_paranoid_spec.rb
Expand Up @@ -11,8 +11,8 @@ class Android < ActiveRecord::Base

describe Android do
before(:each) do
Android.delete_all
Person.delete_all
Android.connection.execute 'DELETE FROM androids'
Person.connection.execute 'DELETE FROM people'

@luke = Person.create(:name => 'Luke Skywalker')
@r2d2 = Android.create(:name => 'R2D2', :owner_id => @luke.id)
Expand Down

0 comments on commit 238eca6

Please sign in to comment.