We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb331bb commit 5ef55deCopy full SHA for 5ef55de
spec/annotate/annotate_models_spec.rb
@@ -455,6 +455,11 @@ def encoding_comments_list_each
455
expect(File.read(@model_file_name)).to eq("#{@file_content}\n#{@schema_info}")
456
end
457
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
+
463
describe "with existing annotation => :before" do
464
before do
465
annotate_one_file :position => :before
0 commit comments