Commit 5ef55de9 by Kamil Bielawski

Test for annotation wrapper

parent cb331bbe
......@@ -455,6 +455,11 @@ end
expect(File.read(@model_file_name)).to eq("#{@file_content}\n#{@schema_info}")
end
it 'should wrap annotation if wrapper is specified' do
annotate_one_file :wrapper_beg => 'START', :wrapper_end => 'END'
expect(File.read(@model_file_name)).to eq("START\n#{@schema_info}\nEND\n#{@file_content}")
end
describe "with existing annotation => :before" do
before do
annotate_one_file :position => :before
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment