-
Notifications
You must be signed in to change notification settings - Fork 53
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
Replace factory_girl with factory_bot #171
Conversation
Gemfile
Outdated
@@ -15,11 +15,10 @@ group :development, :test do | |||
# Upload coverage reports to coveralls.io | |||
gem 'coveralls', require: false | |||
# supplies factories for producing model instance for specs | |||
# Version 4.1.0 or newer is needed to support generate calls without the 'FactoryGirl.' in factory definitions syntax. | |||
gem 'factory_girl' | |||
# Version 4.1.0 or newer is needed to support generate calls without the 'FactoryGBot.' in factory definitions syntax. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FactoryGBot
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx fixed. I just committed it to github so travis runs the tests and I don't have to set everything up. But the build also fails here :/
Ah, you get a ton of these too?
|
Jeah Travis fails a lot: Is there another dependency that needs to be updated too? |
Looks like this missed lib/metasploit_data_models/engine.rb Try applying something like
|
ah how could I miss them? Added the changes |
Well, down to only 12 errors 📦 |
I have no idea why these tests fail after switching to |
How about we just mark the failing tests as pending and move on. I wouldn't spend too much more effort on these when we're trying to move away from this style of data model anyway. |
If I combine the below patch + rapid7/metasploit-credential#130, the tests all pass on metasploit-framework again.
|
I basically just kicked the can on search tests here, since we're looking to totally discard this search model in the future anyway. |
Thanks, added the patch |
And we have green! |
See rapid7/metasploit-framework#9740