Skip to content

Commit

Permalink
re-add specs to RubCop config
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-makarov committed Jan 24, 2021
1 parent 189abc0 commit bb23860
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .rubocop_cocoapods.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ require:
AllCops:
Include:
- lib/**/*.rb
- spec/**/*.rb
- Rakefile
- Gemfile
- "*.gemspec"
Expand Down
4 changes: 2 additions & 2 deletions spec/standard_error_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ module Pod

it 'parses syntax error messages for well-formed messages' do
code = "puts 'hi'\nputs())\nputs 'bye'"
# rubocop:disable Eval
# rubocop:disable Security/Eval
syntax_error = should.raise(SyntaxError) { eval(code, nil, @dsl_path.to_s) }
# rubocop:enable Eval
# rubocop:enable Security/Eval
@err.stubs(:description).returns("Invalid `Three20.podspec` file: #{syntax_error.message}")
@err.stubs(:underlying_exception).returns(syntax_error)
File.stubs(:read).returns(code)
Expand Down

0 comments on commit bb23860

Please sign in to comment.