Skip to content

Commit 749472d

Browse files
committed
add before block to spec
1 parent 2b233e5 commit 749472d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

spec/lib/code_ownership/private/ownership_mappers/file_annotations_spec.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)