Skip to content

Commit

Permalink
Fix rubocop after disabling BooleanSymbol cop
Browse files Browse the repository at this point in the history
  • Loading branch information
root-expert committed Nov 30, 2021
1 parent 92e9097 commit d7f3058
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions spec/unit/puppet/type/grafana_datasource_type_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@
expect(gdatasource[:type]).to eq('elasticsearch')
expect(gdatasource[:organization]).to eq('test_org')
expect(gdatasource[:access_mode]).to eq(:proxy)
expect(gdatasource[:is_default]).to eq(:true) # rubocop:disable Lint/BooleanSymbol
expect(gdatasource[:basic_auth]).to eq(:true) # rubocop:disable Lint/BooleanSymbol
expect(gdatasource[:is_default]).to eq(:true)
expect(gdatasource[:basic_auth]).to eq(:true)
expect(gdatasource[:basic_auth_user]).to eq('user')
expect(gdatasource[:basic_auth_password]).to eq('password')
expect(gdatasource[:with_credentials]).to eq(:true) # rubocop:disable Lint/BooleanSymbol
expect(gdatasource[:with_credentials]).to eq(:true)
expect(gdatasource[:database]).to eq('test_db')
expect(gdatasource[:user]).to eq('db_user')
expect(gdatasource[:password]).to eq('db_password')
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/puppet/type/grafana_notification_type_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
expect(gnotification[:name]).to eq('foo')
expect(gnotification[:grafana_url]).to eq('http://example.com')
expect(gnotification[:type]).to eq('email')
expect(gnotification[:is_default]).to eq(:true) # rubocop:disable Lint/BooleanSymbol
expect(gnotification[:send_reminder]).to eq(:true) # rubocop:disable Lint/BooleanSymbol
expect(gnotification[:is_default]).to eq(:true)
expect(gnotification[:send_reminder]).to eq(:true)
expect(gnotification[:frequency]).to eq('20m')
expect(gnotification[:settings]).to eq(adresses: 'test@example.com')
end
Expand Down

0 comments on commit d7f3058

Please sign in to comment.