You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The spec will fail, because the non-namespaced query is:
SELECT "multiple_namespaceds".* FROM "multiple_namespaceds" WHERE "multiple_namespaceds"."status" = 'unsold'
While the namespaced query is:
SELECT "multiple_namespaceds".* FROM "multiple_namespaceds" WHERE "multiple_namespaceds"."status" = 'car_unsold'
Expected behavior
The namespaced query should not be testing a different status value. I do not expect the status values stored in the database to be namespaced.
The text was updated successfully, but these errors were encountered:
I think the fix here would be for create_scope and aasm_create_scope to accept separate scope_name and state_name arguments. For example, the AR implementation might look like this:
Describe the bug
Namespaced scopes were implemented in #735. They do not work the way I expect.
To Reproduce
Add the following to the spec for namespaced scopes:
The spec will fail, because the non-namespaced query is:
While the namespaced query is:
Expected behavior
The namespaced query should not be testing a different status value. I do not expect the status values stored in the database to be namespaced.
The text was updated successfully, but these errors were encountered: