Skip to content

Commit 1f4fb0a

Browse files
committed
Merge pull request #222 from kamilbielawski/develop
Add missing test for :position => 'after'
2 parents 6dd28f7 + 080fd67 commit 1f4fb0a

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)