Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rspec transaction rollback errors #42

Closed
meltingice opened this issue Feb 10, 2014 · 3 comments
Closed

rspec transaction rollback errors #42

meltingice opened this issue Feb 10, 2014 · 3 comments

Comments

@meltingice
Copy link

When running rspec, every test outputs the error:

/Users/ryanlefevre/.rvm/gems/ruby-2.0.0-p353/bundler/gems/makara-fd03ae9cee58/lib/makara/proxy.rb:81:in `block in respond_to_missing?': delegator does not forward private method #rollback_transaction_records

Environment:

  • Ruby 2.0.0
  • Rails 3.2.16
  • Rspec 2.14.1
  • database_cleaner 1.2.0
@mnelson
Copy link
Contributor

mnelson commented Feb 10, 2014

At TaskRabbit we don't use makara in the test environment because things get very screwy with transactions. SimpleDelegator is sending that message: https://github.com/ruby/ruby/blob/trunk/lib/delegate.rb#L101. Looks like we could opt out of calling super() if include_private=true.

@mnelson
Copy link
Contributor

mnelson commented Feb 10, 2014

@meltingice master has updates which should resolve this specific issue. Let me know if that solves your issues and I'll tag it.

@meltingice
Copy link
Author

Yeah, I ended up switching to normal mysql2 for the test environment. I can confirm that this is fixed in master, though.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants