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

Add Tests ruby 2.7 and 3.0 for integration test #393

Merged
merged 2 commits into from Apr 19, 2021

Conversation

QWYNG
Copy link
Contributor

@QWYNG QWYNG commented Apr 19, 2021

fix #392

special thanks to @aried3r.
I thank him for the kind offer.

I referred to the following commit.
brendon/ranked-model#174
brendon/ranked-model#168

@QWYNG QWYNG mentioned this pull request Apr 19, 2021
@QWYNG QWYNG changed the title add ruby 2.7 and 3.0 for integration test special thanks to @aried3r Add Tests ruby 2.7 and 3.0 for integration test Apr 19, 2021
@@ -11,7 +11,7 @@ def setup_db(position_options = {})

# AR caches columns options like defaults etc. Clear them!
ActiveRecord::Base.connection.create_table :mixins do |t|
t.column :pos, :integer, position_options unless position_options[:positive] && sqlite
t.column :pos, :integer, **position_options unless position_options[:positive] && sqlite
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ruby 2.7.3 warning

❯ rake test                                                                                            
Run options: --seed 34339

# Running:

#{HOME}/acts_as_list/test/test_list.rb:14: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/#{HOME}/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/activerecord-6.1.3.1/lib/active_record/connection_adapters/abstract/schema_definitions.rb:401: warning: The called method `column' is defined here
..................................................................................................................................................................................................

Finished in 15.685896s, 12.3678 runs/s, 62.0940 assertions/s.

194 runs, 974 assertions, 0 failures, 0 errors, 0 skips

@QWYNG QWYNG force-pushed the add_test_for_ruby_2_7_and_3_0 branch from d8f618d to c6fcbf5 Compare April 19, 2021 16:51
@QWYNG QWYNG force-pushed the add_test_for_ruby_2_7_and_3_0 branch from c6fcbf5 to a83dde6 Compare April 19, 2021 17:22
gemfile: gemfiles/rails_4_2.gemfile
# Ruby 2.7 warning `sqlite3-1.3.13/lib/sqlite3/statement.rb:108: warning: rb_tainted_str_new is deprecated`
# and job wil exceed the maximum log length
# see also: https://github.com/sparklemotion/sqlite3-ruby/issues/276
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The warning also occurs with the ranked-model.
https://travis-ci.org/github/mixonic/ranked-model/jobs/755121129

@brendon brendon merged commit 19a251f into brendon:master Apr 19, 2021
@brendon
Copy link
Owner

brendon commented Apr 19, 2021

Looks good to me @QWYNG, well done on getting this all green. Travis can be a temperamental beast at times :D

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.

Tests for Ruby 2.7 and 3.0
2 participants