-
Notifications
You must be signed in to change notification settings - Fork 33
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
Use next_rails namespace on spec tests. #117
Conversation
require "tempfile" | ||
require_relative "spec_helper" | ||
require_relative "../lib/deprecation_tracker" |
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.
This case we still need the require_relatvie
because the deprecation_tracker class is out of the next_rails
namespace. 👍
expect(output).to match "gems incompatible with Rails 7.0" | ||
end | ||
end | ||
end |
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.
All these tests were moved from spec/bundle_report_spec.rb
268760f
to
23a499f
Compare
23a499f
to
6d20ef4
Compare
|
||
RSpec.describe NextRails::GemInfo do | ||
describe "#state" do |
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.
@JuanVqz we do not need these specs anymore? #state
and #find_latest_compatible
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.
@julioalucero thank you for catching it! I fixed it already, please feel free to review it again when possible 👍
1b19c08
to
91714b2
Compare
Test for Ruby 3 are failing because it needs this fix bug first #125
|
a4cb607
to
a0d63b9
Compare
There were some not needed `require_relative` calls if the `spec` folder were ordered according to the `lib` folder. So, I removed them and organized the test suite accordingly the classes at library
a0d63b9
to
e9a816b
Compare
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.
@JuanVqz Looks good, thanks!
Description
There were some unnecessary
require_relative
calls in the spec files, so I removed them and organized the test suite according to the classes in the library folder.Motivation and Context
When creating additional classes within the NextRails namespace, it became challenging to utilize
require_relative
calls for loading the classes in spec files.How Has This Been Tested?
The test suite should still pass.
Screenshots:
I will abide by the code of conduct