Skip to content

Commit

Permalink
[CIfix] Explicitly write hash shorthands
Browse files Browse the repository at this point in the history
  • Loading branch information
Mth0158 committed Nov 24, 2023
1 parent e1dd3d5 commit 29e2f0f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module WorksWithMessageOption
before { subject.with_message.attach(file_not_matching_requirements) }

it { is_expected_not_to_be_valid }
it { is_expected_to_have_error_message("Custom message", error_options:) }
it { is_expected_to_have_error_message("Custom message", error_options: error_options) }
it { is_expected_to_have_error_options(error_options) }
end
end
Expand Down
14 changes: 7 additions & 7 deletions test/validators/size_validator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
end

it { is_expected_not_to_be_valid }
it { is_expected_to_have_error_message("file_size_not_less_than", error_options:) }
it { is_expected_to_have_error_message("file_size_not_less_than", error_options: error_options) }
it { is_expected_to_have_error_options(error_options) }
end

Expand All @@ -56,7 +56,7 @@
end

it { is_expected_not_to_be_valid }
it { is_expected_to_have_error_message("file_size_not_less_than", error_options:) }
it { is_expected_to_have_error_message("file_size_not_less_than", error_options: error_options) }
it { is_expected_to_have_error_options(error_options) }
end
end
Expand Down Expand Up @@ -92,7 +92,7 @@
end

it { is_expected_not_to_be_valid }
it { is_expected_to_have_error_message("file_size_not_less_than_or_equal_to", error_options:) }
it { is_expected_to_have_error_message("file_size_not_less_than_or_equal_to", error_options: error_options) }
it { is_expected_to_have_error_options(error_options) }
end
end
Expand All @@ -116,7 +116,7 @@
end

it { is_expected_not_to_be_valid }
it { is_expected_to_have_error_message("file_size_not_greater_than", error_options:) }
it { is_expected_to_have_error_message("file_size_not_greater_than", error_options: error_options) }
it { is_expected_to_have_error_options(error_options) }
end

Expand All @@ -132,7 +132,7 @@
end

it { is_expected_not_to_be_valid }
it { is_expected_to_have_error_message("file_size_not_greater_than", error_options:) }
it { is_expected_to_have_error_message("file_size_not_greater_than", error_options: error_options) }
it { is_expected_to_have_error_options(error_options) }
end

Expand Down Expand Up @@ -198,7 +198,7 @@
end

it { is_expected_not_to_be_valid }
it { is_expected_to_have_error_message("file_size_not_between", error_options:) }
it { is_expected_to_have_error_message("file_size_not_between", error_options: error_options) }
it { is_expected_to_have_error_options(error_options) }
end

Expand Down Expand Up @@ -232,7 +232,7 @@
end

it { is_expected_not_to_be_valid }
it { is_expected_to_have_error_message("file_size_not_between", error_options:) }
it { is_expected_to_have_error_message("file_size_not_between", error_options: error_options) }
it { is_expected_to_have_error_options(error_options) }
end
end
Expand Down

0 comments on commit 29e2f0f

Please sign in to comment.