Skip to content

Commit

Permalink
Merge pull request #222 from kamilbielawski/develop
Browse files Browse the repository at this point in the history
Add missing test for :position => 'after'
  • Loading branch information
ctran committed Jan 2, 2015
2 parents 6dd28f7 + 080fd67 commit 1f4fb0a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/annotate/annotate_models_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,11 @@ def encoding_comments_list_each
expect(File.read(@model_file_name)).to eq("#{@schema_info}\n#{@file_content}")
end

it "should put annotation after class if :position => 'after'" do
annotate_one_file :position => 'after'
expect(File.read(@model_file_name)).to eq("#{@file_content}\n#{@schema_info}")
end

it "should put annotation after class if :position => :after" do
annotate_one_file :position => :after
expect(File.read(@model_file_name)).to eq("#{@file_content}\n#{@schema_info}")
Expand Down

0 comments on commit 1f4fb0a

Please sign in to comment.