diff options
Diffstat (limited to 'spec/factories/diff_position.rb')
-rw-r--r-- | spec/factories/diff_position.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/factories/diff_position.rb b/spec/factories/diff_position.rb index 685272acf5c..0185c4ce156 100644 --- a/spec/factories/diff_position.rb +++ b/spec/factories/diff_position.rb @@ -53,7 +53,10 @@ FactoryBot.define do factory :image_diff_position do position_type { 'image' } x { 1 } - y { 1 } + # Fix: + # NoMethodError: undefined method `end_line=' for nil:NilClass + # from /usr/lib/ruby/2.6.0/psych/tree_builder.rb:133:in `set_end_location' + add_attribute(:y) { 1 } width { 10 } height { 10 } end |