File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
spec/lib/code_ownership/private/ownership_mappers Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,19 @@ 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+
73+ context 'haml owned file' do
74+ before do
75+ write_configuration
76+ write_file ( 'config/teams/bar.yml' , <<~CONTENTS )
77+ name: Bar
78+ CONTENTS
79+
80+ write_file ( 'packs/my_pacl/owned_file.html.haml' , <<~CONTENTS )
81+ -# @team Bar
82+ CONTENTS
83+ end
84+ end
7285 end
7386
7487 context 'javascript owned file with brackets' do
@@ -89,6 +102,8 @@ module CodeOwnership
89102 end
90103 end
91104
105+
106+
92107 describe '.remove_file_annotation!' do
93108 subject ( :remove_file_annotation ) do
94109 CodeOwnership . remove_file_annotation! ( filename )
You can’t perform that action at this time.
0 commit comments