File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ task :approved_licenses do
3232 puts approved . join ( ', ' )
3333 puts "\n "
3434
35- potential = approved - ( licenses . map { |l | l [ 'id' ] } )
35+ potential = approved - licenses . map { |l | l [ 'id' ] }
3636 puts "#{ potential . count } potential additions:"
3737 puts potential . join ( ', ' )
3838end
Original file line number Diff line number Diff line change 77 context "The #{ license [ 'title' ] } license" do
88 it 'should only contain supported fillable fields' do
99 matches = license [ 'content' ] [ 1 , 1000 ] . scan ( /\s +\[ ([a-z_]+)\] / )
10- extra_fields = matches . flatten - ( fields . map { |f | f [ 'name' ] } )
10+ extra_fields = matches . flatten - fields . map { |f | f [ 'name' ] }
1111 expect ( extra_fields ) . to be_empty
1212 end
1313 end
Original file line number Diff line number Diff line change 99
1010 context "The #{ license [ 'title' ] } license" do
1111 it 'should only contain supported meta fields' do
12- extra_fields = raw_fields . keys - ( meta . map { |m | m [ 'name' ] } )
12+ extra_fields = raw_fields . keys - meta . map { |m | m [ 'name' ] }
1313 expect ( extra_fields ) . to be_empty
1414 end
1515
You can’t perform that action at this time.
0 commit comments