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

Tenant creation in transaction makes some test cases fail #123

Closed
rpbaltazar opened this issue Dec 15, 2020 · 1 comment · Fixed by #124
Closed

Tenant creation in transaction makes some test cases fail #123

rpbaltazar opened this issue Dec 15, 2020 · 1 comment · Fixed by #124

Comments

@rpbaltazar
Copy link
Contributor

Steps to reproduce

Run the test suite with use_transactional_fixtures set to true. Creating a new tenant in a test will raise an exception because a transaction is already in place

Expected behavior

Should pass the tests and not raise exception

  • Database: (Tell us what database and its version you use.)

postgresql 12.4

  • Apartment version:

development branch

  • Apartment config (in config/initializers/apartment.rb or so):

    • use_schemas: true
  • Rails (or ActiveRecord) version:

6.0.3.4

  • Ruby version:

2.7.1

@rpbaltazar
Copy link
Contributor Author

Caused by #66

rpbaltazar added a commit that referenced this issue Dec 16, 2020
Prepare Release - 2.8.0

- Resolves #98 - Trying to generate an automatic changelog - #99
- Resolves #86 - Fixes seeding errors - #87
- Resolves #66 - Uses a transaction to create a tenant - #69
- Resolves #121 - Relaxes dependencies to allow rails 6.1 - #122
- Resolves #123 - When tests run in a transaction, new tenants in tests fail to create - #124
- Reverted unsafe initializer - #118
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

Successfully merging a pull request may close this issue.

1 participant