Upgrade to Ruby 3.0.2.
This commit is contained in:
@@ -1 +1 @@
|
||||
2.7.1
|
||||
3.0.2
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
set -xeuo pipefail
|
||||
|
||||
RUBY_VERSION="${RUBY_VERSION:-2.7.4}"
|
||||
RUBY_VERSION="${RUBY_VERSION:-3.0.2}"
|
||||
VIPS_VERSION="${VIPS_VERSION:-8.10.6}"
|
||||
FFMPEG_VERSION="${FFMPEG_VERSION:-4.4}"
|
||||
EXIFTOOL_VERSION="${EXIFTOOL_VERSION:-12.30}"
|
||||
|
||||
@@ -65,7 +65,7 @@ class CommentsControllerTest < ActionDispatch::IntegrationTest
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
should respond_to_search({}, other_params: {group_by: "comment"}).with { [@deleted_comment, @mod_comment, @user_comment] }
|
||||
should respond_to_search(other_params: {group_by: "comment"}).with { [@deleted_comment, @mod_comment, @user_comment] }
|
||||
should respond_to_search(body_matches: "blah").with { @mod_comment }
|
||||
should respond_to_search(score: 10).with { @user_comment }
|
||||
should respond_to_search(is_sticky: "true").with { @mod_comment }
|
||||
|
||||
@@ -9,7 +9,7 @@ module ControllerHelper
|
||||
# setup { @touhou = create(:tag, name: "touhou") }
|
||||
# should respond_to_search(name: "touhou").with { @touhou }
|
||||
#
|
||||
def respond_to_search(search_params, other_params: {})
|
||||
ruby2_keywords def respond_to_search(search_params, other_params: {})
|
||||
RespondToSearchMatcher.new(search_params, other_params)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user