[rspec-devel] [ rspec-Bugs-6112 ] Rspec on Rails: Postgresql reports WARNING: there is already a transaction in progress

noreply at rubyforge.org noreply at rubyforge.org
Thu Oct 12 10:35:00 EDT 2006


Bugs item #6112, was opened at 2006-10-13 00:35
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=6112&group_id=797

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: David Lee (davidlee)
Assigned to: Nobody (None)
Summary: Rspec on Rails: Postgresql reports WARNING: there is already a transaction in progress

Initial Comment:
This has been verified on Arch Linux (gimmick) and OS X Tiger (postgres 8.1 via darwinports), using Rails 1.1.2 and RSpec 0.6.4 & the rspec rails plugin.

Description (output from skeletal rails project):

/tmp/foo % spec spec/models/tester_spec.rb 

WARNING:  there is already a transaction in progress
WARNING:  there is no transaction in progress
.WARNING:  there is already a transaction in progress
WARNING:  there is no transaction in progress
F

1)
Spec::Expectations::ExpectationNotMetError in 'Tester class with fixtures loaded should have more specifications'
not enough specs
./spec/models/tester_spec.rb:11:in `should have more specifications'

Finished in 0.326214 seconds

2 specifications, 1 failure

____

2 lines of warnings are generated per specify block.

When running a substantial spec, voluminous WARNINGs are generated, such that it is necessary to run 

spec spec/models/* 2> /dev/null

to prevent the test output being lost in noise.

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=6112&group_id=797


More information about the rspec-devel mailing list