#211 new
Allan Cochrane

Tests seem to be broken

Reported by Allan Cochrane | April 24th, 2008 @ 02:51 PM

As described in the Google group, the tests seem to be broken, especially miffed abouth the #size method 'cos that buggers up some of my other plugins (e.g. sortable_columns) and that's annoying!

Posting here because no response in Google group and cannot quite work out how the context is working in the code.

merbuntu:~/Ruby/ambition> rake test:adapters:activerecord
(in /home/acochran/Ruby/ambition)
Not doing any of the Echoe gemmy stuff, because you don't have the specified gem versions
Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake/rake_test_loader
Started
........E......DDDDD............................EEE..............................DEEEEEEEEE......D...
Finished in 0.15334 seconds.

  1) Error:
test_spec {ActiveRecord Adapter Count} 001 [size](ActiveRecord Adapter  Count):
SystemStackError: stack level too deep
    ./adapters/ambitious_activerecord/test/../../../lib/ambition/api.rb:28:in `size'
    ./adapters/ambitious_activerecord/test/../../../lib/ambition/api.rb:28:in `size'
    ./adapters/ambitious_activerecord/test/count_test.rb:12:in `test_spec {ActiveRecord Adapter Count} 001 [size]'
    /usr/lib/ruby/gems/1.8/gems/mocha-0.5.6/lib/mocha/test_case_adapter.rb:19:in `__send__'
    /usr/lib/ruby/gems/1.8/gems/mocha-0.5.6/lib/mocha/test_case_adapter.rb:19:in `run'

  2) should run all selects /  detects against that collection is disabled

  3) should run all sorts against that collection is disabled

  4) should chain successfully is disabled

  5) should be able to revert to normal is disabled

  6) should know what to return is disabled

  7) Error:
test_spec {ActiveRecord Adapter Enumerable Methods} 003 [any?](ActiveRecord Adapter     Enumerable Methods):
SystemStackError: stack level too deep
    ./adapters/ambitious_activerecord/test/../../../lib/ambition/api.rb:28:in `size'
    ./adapters/ambitious_activerecord/test/../../../lib/ambition/api.rb:28:in `size'
    ./adapters/ambitious_activerecord/test/count_test.rb:12:in `test_spec {ActiveRecord Adapter Count} 001 [size]'
    /usr/lib/ruby/gems/1.8/gems/mocha-0.5.6/lib/mocha/test_case_adapter.rb:19:in `__send__'
    /usr/lib/ruby/gems/1.8/gems/mocha-0.5.6/lib/mocha/test_case_adapter.rb:19:in `run'

  8) Error:
test_spec {ActiveRecord Adapter Enumerable Methods} 004 [all?](ActiveRecord Adapter     Enumerable Methods):
SystemStackError: stack level too deep
    ./adapters/ambitious_activerecord/test/../../../lib/ambition/api.rb:28:in `size'
    ./adapters/ambitious_activerecord/test/../../../lib/ambition/api.rb:28:in `size'
    ./adapters/ambitious_activerecord/test/count_test.rb:12:in `test_spec {ActiveRecord Adapter Count} 001 [size]'
    /usr/lib/ruby/gems/1.8/gems/mocha-0.5.6/lib/mocha/test_case_adapter.rb:19:in `__send__'
    /usr/lib/ruby/gems/1.8/gems/mocha-0.5.6/lib/mocha/test_case_adapter.rb:19:in `run'
.......

Allan

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket

Tags

Pages