Skip to content

Commit 3aac227

Browse files
author
Artūrs Mekšs
committed
Fix: test must track encoding comment not the whole file
1 parent 8ed78d0 commit 3aac227

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/annotate/annotate_models_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ class User < ActiveRecord::Base
407407

408408
annotate_one_file :position => :before
409409

410-
File.read(@model_file_name).should == "#{encoding_comment}\n#{@schema_info}#{@file_content}"
410+
File.open(@model_file_name, &:readline).should == "#{encoding_comment}\n"
411411
end
412412
end
413413

0 commit comments

Comments
 (0)