Skip to content

Commit

Permalink
Fix rubocop
Browse files Browse the repository at this point in the history
Remove i18n dependency
  • Loading branch information
ericproulx committed Oct 28, 2023
1 parent a045264 commit ce19591
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion grape.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ Gem::Specification.new do |s|
s.add_runtime_dependency 'activesupport', '>= 5'
s.add_runtime_dependency 'builder'
s.add_runtime_dependency 'dry-types', '>= 1.1'
s.add_runtime_dependency 'i18n'
s.add_runtime_dependency 'mustermann-grape', '~> 1.0.0'
s.add_runtime_dependency 'rack', '>= 1.3.0'
s.add_runtime_dependency 'rack-accept'
Expand Down
2 changes: 1 addition & 1 deletion spec/grape/api/custom_validations_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def validate_param!(_attr_name, _params)
before { stub_const('Grape::Validations::Validators::InstanceValidatorValidator', validator_type) }

it 'passes validation every time' do
expect(validator_type).to receive(:new).exactly(2).times.and_call_original
expect(validator_type).to receive(:new).twice.and_call_original
get '/', param_to_validate: 'value', another_param_to_validate: 'value'
expect(last_response.status).to eq 200
end
Expand Down

0 comments on commit ce19591

Please sign in to comment.