Skip to content

Stack level too deep in development environment #179

Closed
@scho

Description

@scho

Hi folks,

I wanted to use database_cleaner in development environment in order to clear out all my seed data (I can't use rake db:reset). But I get a strange stack level too deeperror:

1.9.3p327 :001 > require 'database_cleaner'
 => true 
1.9.3p327 :002 > DatabaseCleaner.strategy = :truncation
 => :truncation 
1.9.3p327 :003 > DatabaseCleaner.clean
SystemStackError: stack level too deep
    from /home/vagrant/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/irb/workspace.rb:80
Maybe IRB bug!

The same happens in a rake task, but all works find in test environment!
I use Ubuntu Server 12.04. My version of database_cleaner is 0.9.1.

Any ideas, why this doesn't work?

cheers,
Georg

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions