File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed
Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -2,3 +2,19 @@ inherit_gem:
22 rubocop-github :
33 - config/default.yml
44require : rubocop-performance
5+
6+ AllCops :
7+ TargetRubyVersion : 2.6
8+
9+ # Disable cops that are not consistently available across all Ruby versions
10+ Style/ClassMethodsDefinitions :
11+ Enabled : false
12+
13+ Style/OrAssignment :
14+ Enabled : false
15+
16+ Layout/SpaceInsideHashLiteralBraces :
17+ Enabled : false
18+
19+ Lint/ParenthesesAsGroupedExpression :
20+ Enabled : false
Original file line number Diff line number Diff line change @@ -18,11 +18,13 @@ module SecureHeaders
1818
1919 it "dup results in a copy of the default config" do
2020 Configuration . default
21- original_configuration = Configuration . send ( :default_config )
21+ original_configuration = Configuration . public_send ( :default_config )
2222 configuration = Configuration . dup
2323 expect ( original_configuration ) . not_to be ( configuration )
2424 Configuration ::CONFIG_ATTRIBUTES . each do |attr |
25- expect ( original_configuration . send ( attr ) ) . to eq ( configuration . send ( attr ) )
25+ # rubocop:disable GitHub/AvoidObjectSendWithDynamicMethod
26+ expect ( original_configuration . public_send ( attr ) ) . to eq ( configuration . public_send ( attr ) )
27+ # rubocop:enable GitHub/AvoidObjectSendWithDynamicMethod
2628 end
2729 end
2830
You can’t perform that action at this time.
0 commit comments