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 38b6a8e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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
12 changes: 6 additions & 6 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

0 comments on commit 38b6a8e

Please sign in to comment.