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

Factories should be referenced by symbol #3259

Merged
merged 1 commit into from
Jan 18, 2018

Conversation

bdunne
Copy link
Member

@bdunne bdunne commented Jan 16, 2018

@himdel Please review. Found when looking into ManageIQ/manageiq#16768 (comment)

@himdel
Copy link
Contributor

himdel commented Jan 17, 2018

@bdunne Ah, LGTM, but if the idea is to always pass a symbol as a name of the factory, there's also..

spec/controllers/ems_physical_infra_controller_spec.rb
99:        ems = FactoryGirl.create("ems_physical_infra")

spec/controllers/ems_infra_controller_spec.rb
359:        ems = FactoryGirl.create("ems_vmware")

@bdunne bdunne force-pushed the factories_should_be_symbols branch from 0974850 to 3a23678 Compare January 17, 2018 21:53
@bdunne
Copy link
Member Author

bdunne commented Jan 17, 2018

Okay @himdel I think I've got all of them now. I also opened some other PR's to fix other issues in the list.

@miq-bot
Copy link
Member

miq-bot commented Jan 17, 2018

Checked commit bdunne@3a23678 with ruby 2.3.3, rubocop 0.52.0, haml-lint 0.20.0, and yamllint 1.10.0
4 files checked, 0 offenses detected
Everything looks fine. 🏆

@himdel
Copy link
Contributor

himdel commented Jan 18, 2018

LGTM, thanks! :)

I'll go through the other PRs later..

@himdel himdel merged commit 2495cd9 into ManageIQ:master Jan 18, 2018
@himdel himdel self-assigned this Jan 18, 2018
@himdel himdel added the test label Jan 18, 2018
@himdel himdel added this to the Sprint 78 Ending Jan 29, 2018 milestone Jan 18, 2018
@bdunne bdunne deleted the factories_should_be_symbols branch January 18, 2018 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants