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

Fixes #94 - Ids Query Method #97

Merged
merged 1 commit into from
Jul 17, 2024
Merged

Fixes #94 - Ids Query Method #97

merged 1 commit into from
Jul 17, 2024

Conversation

cdelpone-beyond-finance
Copy link
Contributor

@cdelpone-beyond-finance cdelpone-beyond-finance commented Jul 16, 2024

Fixes ids method to return an array instead of an af object.

before do
allow(client).to receive(:query).and_return(api_result)
api_result.each do |instance|
allow(active_query).to receive(:build).with(instance, {}).and_return(build_restforce_sobject(id: instance['Id']))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our sobject double doesn't respond to []= so we're building the AQs with actual SObjects so we're correctly testing behavior.

@mikelarkin mikelarkin merged commit 5d1689f into main Jul 17, 2024
7 checks passed
@mikelarkin mikelarkin deleted the hotfix-ids-query-method branch July 17, 2024 13:54
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 this pull request may close these issues.

3 participants