[rspec-devel] Postgresql Warnings (was Re: Rpec with Locomo

David Lee david at davelee.com.au
Thu Oct 12 10:30:48 EDT 2006


ok, I will post a bug report.

I won't post a file, as it seems to happen for any rails model specs  
running on Postgresql (verified on Arch Linux and OS X with both a  
"real" and a fresh, blank project).

I suspect my issue and the sqlite one posted below might share a  
common cause: both seem to point to an issue in handling transactions  
properly - possibly transactions being nested when they should not  
be? Just a semi-naîve guess ...

cheers,
David


On 12/10/2006, at 11:51 PM, aslak hellesoy wrote:

> Feel free to post a bug report with a description (attach some files)
> about how to reproduce this behaviour.
>
> Aslak
>
> On 10/12/06, David Lee <david at davelee.com.au> wrote:
>> It may be worth mentioning I get plenty of warnings with  
>> Postgresql and
>> RSpec about transactions when i run my specs - this for each  
>> specify block:
>>
>> WARNING:  there is no transaction in progress
>> .WARNING:  there is already a transaction in progress
>> /opt/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/ 
>> active_record/validations.rb:300:
>> warning: Object#type is deprecated; use Object#class
>> /opt/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/ 
>> active_record/validations.rb:300:
>> warning: Object#type is deprecated; use Object#class
>> /opt/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/ 
>> active_record/validations.rb:300:
>> warning: Object#type is deprecated; use Object#class
>> /opt/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/ 
>> active_record/validations.rb:300:
>> warning: Object#type is deprecated; use Object#class
>> /opt/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/ 
>> active_record/validations.rb:300:
>> warning: Object#type is deprecated; use Object#class
>> WARNING:  there is no transaction in progress
>>
>>
>> cheers,
>> David
>>
>>
>> On 12/10/2006, at 9:27 PM, Bolo Michelin wrote:
>> Hello
>>
>> I turn off transactional_fixture
>> self.use_transactional_fixtures = false
>>
>> But when i tested rcpec have this error
>>
>>  pc-mq-dsi3:~/Documents/Coding-Dev/expay_corporate
>> bmichelin$ spec spec/models/faq_spec.rb
>>
>> /Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/ 
>> i386/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/ 
>> errors.rb:94:in
>> `check': cannot rollback - no transaction is active  
>> (SQLite3::SQLException)
>>
>> thanks
>>
>> --
>> Bolo Michelin
>> web: http://www.independza.com
>> _______________________________________________
>> rspec-devel mailing list
>> rspec-devel at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/rspec-devel
>>
>> _______________________________________________
>> rspec-devel mailing list
>> rspec-devel at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/rspec-devel
>>
>>
> _______________________________________________
> rspec-devel mailing list
> rspec-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-devel



More information about the rspec-devel mailing list