File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ group :test do
1818 gem "climate_control" , "~> 1.2.0"
1919 gem "oj" , "~> 3.14" if ENV [ "WITH_OJ_GEM" ] == "true"
2020 gem "rspec" , "~> 3.13.0"
21- gem "rubocop" , "~> 1.78.0 "
21+ gem "rubocop" , "~> 1.79.2 "
2222 gem "rubocop-performance" , "~> 1.26.0"
2323 gem "simplecov" , "~> 0.22.0"
2424 gem "simplecov-console" , "~> 0.9.1"
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ def initialize
3131 #
3232 # @return [String]
3333 def environment
34- return ( @environment ) if defined? ( @environment )
34+ return @environment if defined? ( @environment )
3535
3636 @environment ||= ENV [ "ALLURE_ENVIRONMENT" ]
3737 end
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ def lifecycle
3939
4040 aggregate_failures do
4141 expect ( label ) . to eq ( Allure ::Label . new ( "epic" , "Test Epic" ) )
42- expect ( labels . count { |it | it . name == "epic" } ) . to eq ( 1 )
42+ expect ( labels . count { |label | label . name == "epic" } ) . to eq ( 1 )
4343 end
4444 end
4545
@@ -49,7 +49,7 @@ def lifecycle
4949
5050 aggregate_failures do
5151 expect ( label ) . to eq ( Allure ::Label . new ( "feature" , "Test Feature" ) )
52- expect ( labels . count { |it | it . name == "feature" } ) . to eq ( 1 )
52+ expect ( labels . count { |label | label . name == "feature" } ) . to eq ( 1 )
5353 end
5454 end
5555
@@ -59,7 +59,7 @@ def lifecycle
5959
6060 aggregate_failures do
6161 expect ( label ) . to eq ( Allure ::Label . new ( "story" , "Test Story" ) )
62- expect ( labels . count { |it | it . name == "story" } ) . to eq ( 1 )
62+ expect ( labels . count { |label | label . name == "story" } ) . to eq ( 1 )
6363 end
6464 end
6565
@@ -69,7 +69,7 @@ def lifecycle
6969
7070 aggregate_failures do
7171 expect ( label ) . to eq ( Allure ::Label . new ( "suite" , "Test Suite" ) )
72- expect ( labels . count { |it | it . name == "suite" } ) . to eq ( 1 )
72+ expect ( labels . count { |label | label . name == "suite" } ) . to eq ( 1 )
7373 end
7474 end
7575
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ def groups
3535 end
3636
3737 def multiformatter
38- [ SimpleCov ::Formatter ::Console ] . yield_self do |formatters |
38+ [ SimpleCov ::Formatter ::Console ] . then do |formatters |
3939 formatters << SimpleCov ::Formatter ::HTMLFormatter if ENV [ "COV_HTML_REPORT" ]
4040 formatters << SimpleCov ::Formatter ::JSONFormatter if ENV [ "CC_TEST_REPORTER_ID" ]
4141 SimpleCov ::Formatter ::MultiFormatter . new ( formatters )
You can’t perform that action at this time.
0 commit comments