File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed
spec/lib/code_ownership/private/ownership_mappers Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -69,35 +69,39 @@ module CodeOwnership
6969 it 'can find the owner of a javascript file with file annotations' do
7070 expect ( CodeOwnership . for_file ( 'frontend/javascripts/packages/my_package/owned_file.jsx' ) . name ) . to eq 'Bar'
7171 end
72+ end
7273
73- context 'haml owned file' do
74+ context 'javascript owned file with brackets ' do
7475 before do
7576 write_configuration
7677 write_file ( 'config/teams/bar.yml' , <<~CONTENTS )
7778 name: Bar
7879 CONTENTS
7980
80- write_file ( 'packs/my_pacl/ owned_file.html.haml ' , <<~CONTENTS )
81- -# @team Bar
81+ write_file ( 'frontend/javascripts/packages/my_package/[formID]/ owned_file.jsx ' , <<~CONTENTS )
82+ // @team Bar
8283 CONTENTS
8384 end
84- end
85+
86+ it 'can find the owner of a javascript file with file annotations' do
87+ expect ( CodeOwnership . for_file ( 'frontend/javascripts/packages/my_package/[formID]/owned_file.jsx' ) . name ) . to eq 'Bar'
88+ end
8589 end
8690
87- context 'javascript owned file with brackets ' do
91+ context 'haml owned file' do
8892 before do
8993 write_configuration
9094 write_file ( 'config/teams/bar.yml' , <<~CONTENTS )
9195 name: Bar
9296 CONTENTS
9397
94- write_file ( 'frontend/javascripts/packages/my_package/[formID]/ owned_file.jsx ' , <<~CONTENTS )
95- // @team Bar
98+ write_file ( 'packs/my_pack/ owned_file.html.haml ' , <<~CONTENTS )
99+ -# @team Bar
96100 CONTENTS
97101 end
98102
99- it 'can find the owner of a javascript file with file annotations' do
100- expect ( CodeOwnership . for_file ( 'frontend/javascripts/packages/my_package/[formID]/ owned_file.jsx ' ) . name ) . to eq 'Bar'
103+ it 'can find the owner of a haml file with file annotations' do
104+ expect ( CodeOwnership . for_file ( 'packs/my_pack/ owned_file.html.haml ' ) . name ) . to eq 'Bar'
101105 end
102106 end
103107 end
You can’t perform that action at this time.
0 commit comments