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

Update rspec for CI and development to 3.8.0+ #699

Merged
merged 2 commits into from May 25, 2022
Merged

Update rspec for CI and development to 3.8.0+ #699

merged 2 commits into from May 25, 2022

Conversation

a2ikm
Copy link
Contributor

@a2ikm a2ikm commented May 23, 2022

It supresses ERB.new deprecation warnings.
rspec/rspec-core@c1b5695

Please check the CI outputs for Ruby 3.0+.
https://github.com/mongomapper/mongomapper/runs/6594866261?check_suite_focus=true#step:6:9 (this is for Ruby 3.1).

Fixed #697

It supresses ERB.new deprecation warnings.
rspec/rspec-core@c1b5695
@coveralls
Copy link

coveralls commented May 25, 2022

Coverage Status

Coverage decreased (-99.7%) to 0.0% when pulling ed5e81a on update-rspec into 2a28a0f on master.

We many need to pass the last optional Hash to `.with()` as Hash
literal.
@@ -71,7 +71,7 @@ class Address; end
'development' => {'hosts' => ['127.0.0.1:27017'], 'database' => 'test', 'read' => 'primary'}
}
logger = double('logger')
Mongo::Client.should_receive(:new).with(['127.0.0.1:27017'], :logger => logger, :read => :primary, :database => 'test')
Mongo::Client.should_receive(:new).with(['127.0.0.1:27017'], { :logger => logger, :read => :primary, :database => 'test' })
Copy link
Contributor Author

@a2ikm a2ikm May 25, 2022

Choose a reason for hiding this comment

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

MongoMapper.connect(environment, options={})'s last argument is a positional argument, not a keyword arguments. So we have to expect it as so.

These changes are related to rspec/rspec-mocks#1394.

@a2ikm
Copy link
Contributor Author

a2ikm commented May 25, 2022

Hmmm, coveraged for each file are calculated correctly, but total coverage are not.
https://coveralls.io/builds/49447974

Related?
lemurheavy/coveralls-public#1562

@a2ikm a2ikm changed the title Update rspec to 3.8.0+ Update rspec for CI and development to 3.8.0+ May 25, 2022
@a2ikm
Copy link
Contributor Author

a2ikm commented May 25, 2022

Let me merge. It may be one-off.

@a2ikm a2ikm merged commit a7f9b19 into master May 25, 2022
@a2ikm a2ikm deleted the update-rspec branch May 25, 2022 15:42
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.

Fix warnings on ERB.new with Ruby 3.1
2 participants