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

More factories #1511

Merged
merged 2 commits into from
Feb 8, 2016
Merged

More factories #1511

merged 2 commits into from
Feb 8, 2016

Conversation

ChrisBr
Copy link
Member

@ChrisBr ChrisBr commented Feb 5, 2016

  • Enhance project factory
  • Add Configuration factory

@@ -0,0 +1,7 @@
FactoryGirl.define do
factory :configuration do
Copy link
Contributor

Choose a reason for hiding this comment

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

Configuration factory isn't needed... We already excluded from the truncation of the tables, so we always have a Configuration in the RSpec tests

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, but it's a convenient factory to get easily the attributes for updating a configuration!

Copy link
Member Author

Choose a reason for hiding this comment

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

Otherwise I need to manually setup the attributes in the test. But I don't have strong feelings here, if you don't want the factory I can remove it and do it manually in the test...

Copy link
Contributor

Choose a reason for hiding this comment

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

Lets discuss it together with @hennevogel and @bgeuken

Copy link
Member

Choose a reason for hiding this comment

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

I'm totally fine with having a factory for this

hennevogel added a commit that referenced this pull request Feb 8, 2016
@hennevogel hennevogel merged commit 035b014 into openSUSE:master Feb 8, 2016
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