Skip to content

Commit 080fd67

Browse files
Add missing test for position 'after'
1 parent 6dd28f7 commit 080fd67

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
@@ -425,6 +425,11 @@ def encoding_comments_list_each
425425
expect(File.read(@model_file_name)).to eq("#{@schema_info}\n#{@file_content}")
426426
end
427427

428+
it "should put annotation after class if :position => 'after'" do
429+
annotate_one_file :position => 'after'
430+
expect(File.read(@model_file_name)).to eq("#{@file_content}\n#{@schema_info}")
431+
end
432+
428433
it "should put annotation after class if :position => :after" do
429434
annotate_one_file :position => :after
430435
expect(File.read(@model_file_name)).to eq("#{@file_content}\n#{@schema_info}")

0 commit comments

Comments
 (0)