My specs work fine with this in my Gemfile.lock:
grep rspec Gemfile.lock
rspec (2.11.0)
rspec-core (~> 2.11.0)
rspec-expectations (~> 2.11.0)
rspec-mocks (~> 2.11.0)
rspec-core (2.11.0)
rspec-expectations (2.11.1)
rspec-mocks (2.11.1)
rspec-rails (2.11.0)
rspec (~> 2.11.0)
rspec-rails (~> 2.11)
After "bundle update rspec", I started to have problems like this when
running "bundle exec rspec":
Failure/Error: Unable to find matching line from backtrace
NoMethodError:
undefined method `cmd_tuples' for nil:NilClass
#
/home/rodrigo/.rvm/gems/ruby-1.9.3-p286@rails/gems/sequel-3.35.0/lib/sequel/adapters/postgres.rb:191:in
`execute'
#
/home/rodrigo/.rvm/gems/ruby-1.9.3-p286@rails/gems/sequel-3.35.0/lib/sequel/adapters/postgres.rb:532:in
`log_connection_execute'
#
/home/rodrigo/.rvm/gems/ruby-1.9.3-p286@rails/gems/sequel-3.35.0/lib/sequel/database/query.rb:547:in
`rollback_transaction'
#
/home/rodrigo/.rvm/gems/ruby-1.9.3-p286@rails/gems/sequel-3.35.0/lib/sequel/database/query.rb:296:in
`rescue in _transaction'
#
/home/rodrigo/.rvm/gems/ruby-1.9.3-p286@rails/gems/sequel-3.35.0/lib/sequel/database/query.rb:309:in
`_transaction'
#
/home/rodrigo/.rvm/gems/ruby-1.9.3-p286@rails/gems/sequel-3.35.0/lib/sequel/database/query.rb:255:in
`block in transaction'
#
/home/rodrigo/.rvm/gems/ruby-1.9.3-p286@rails/gems/sequel-3.35.0/lib/sequel/database/connecting.rb:229:in
`block in synchronize'
#
/home/rodrigo/.rvm/gems/ruby-1.9.3-p286@rails/gems/sequel-3.35.0/lib/sequel/connection_pool/threaded.rb:88:in
`hold'
#
/home/rodrigo/.rvm/gems/ruby-1.9.3-p286@rails/gems/sequel-3.35.0/lib/sequel/database/connecting.rb:229:in
`synchronize'
#
/home/rodrigo/.rvm/gems/ruby-1.9.3-p286@rails/gems/sequel-3.35.0/lib/sequel/database/query.rb:253:in
`transaction'
# /home/rodrigo/ecore/src/ruby/matterhorn/spec/spec_helper.rb:51:in
`block (3 levels) in <top (required)>'
...
See this spec_helper extract:
config.around(:each) do |example|
51: DB.transaction(savepoint: true, rollback: :always) do
example.run
end
end
Any idea of what has been changed since the releases I'm using that could
be causing this?
Only the first spec is failing. All others are passing.
I don't have any clue why I can't upgrade RSpec... :(
--
You received this message because you are subscribed to the Google Groups
"rspec" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
To view this discussion on the web visit
https://groups.google.com/d/msg/rspec/-/pJO2yuqCocYJ.
For more options, visit https://groups.google.com/groups/opt_out.