Skip to content

Commit 5ef55de

Browse files
Test for annotation wrapper
1 parent cb331bb commit 5ef55de

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spec/annotate/annotate_models_spec.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,11 @@ def encoding_comments_list_each
455455
expect(File.read(@model_file_name)).to eq("#{@file_content}\n#{@schema_info}")
456456
end
457457

458+
it 'should wrap annotation if wrapper is specified' do
459+
annotate_one_file :wrapper_beg => 'START', :wrapper_end => 'END'
460+
expect(File.read(@model_file_name)).to eq("START\n#{@schema_info}\nEND\n#{@file_content}")
461+
end
462+
458463
describe "with existing annotation => :before" do
459464
before do
460465
annotate_one_file :position => :before

0 commit comments

Comments
 (0)