petehamilton / citier

CITIER (Class Inheritance & Table Inheritance Embeddings for Rails) is a solution for simple Multiple Class Inheritance in Rails.
88 stars 24 forks source link

Rspec tests failing - stack level too deep error #66

Open maliakmal opened 11 years ago

maliakmal commented 11 years ago

I'm using the gem in an application, my application works fine apparently, however all of my tests are broken i.e those concerning acts_as_citier models - plus the worst part is that the stack level is too deep as I get the following error message for all broken tests.

Failure/Error: Unable to find matching line from backtrace
     SystemStackError:
       stack level too deep
     # /home/ali/.rvm/gems/ruby-1.9.2-p318/bundler/gems/rails_sql_views-0cf1af369a5f/lib/rails_sql_views/connection_adapters/abstract_adapter.rb:23

I did a check of the rails_sql_views/connection_adapters/abstract_adapter.rb file atleast for the line number in the above error and it just has this line:

self.class.send(:alias_method, :tables, :original_tables_method)

I'm using a postgresql database here.

Thats around 300 tests all broken with the same message :( - whats going on here is citier gem even compatible with RSpec here?