Skip to content

Commit

Permalink
Merge pull request #29 from sue445/feature/fix_ci
Browse files Browse the repository at this point in the history
`String#strip_indent` is removed since rubocop v0.75.0
  • Loading branch information
sue445 committed Oct 1, 2019
2 parents aad5963 + 17641e3 commit 8514a23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions spec/rubocop/cop/itamae/needless_default_action_spec.rb
Expand Up @@ -7,7 +7,7 @@

context 'with default action' do
it 'registers an offense' do
expect_offense(<<-RUBY.strip_indent)
expect_offense(<<~RUBY)
package 'git' do
action :install
^^^^^^^^^^^^^^^ Prefer to omit the default action.
Expand All @@ -17,15 +17,15 @@

include_examples 'autocorrect' do
let(:original) do
<<-RUBY.strip_indent
<<~RUBY
package 'git' do
action :install
end
RUBY
end

let(:corrected) do
<<-RUBY.strip_indent
<<~RUBY
package 'git' do
end
RUBY
Expand Down
2 changes: 1 addition & 1 deletion spec/rubocop/cop/itamae/recipe_path_spec.rb
Expand Up @@ -49,7 +49,7 @@
let(:filename) { '/path/to/repo/recipe.rb' }

it 'registers an offense' do
expect_offense(<<-RUBY.strip_indent)
expect_offense(<<~RUBY)
package 'git'
^ Prefer recipe to placed under `cookbooks` dir or `roles` dir.
RUBY
Expand Down

0 comments on commit 8514a23

Please sign in to comment.