spec/factories/component_factories.rb in ddr-models-2.11.0 vs spec/factories/component_factories.rb in ddr-models-3.0.0.alpha.1

- old
+ new

@@ -1,9 +1,9 @@ FactoryGirl.define do factory :component do - title [ "Test Component" ] - sequence(:identifier) { |n| [ "cmp%05d" % n ] } + dc_title [ "Test Component" ] + sequence(:dc_identifier) { |n| [ "cmp%05d" % n ] } after(:build) do |c| c.upload File.new(File.join(Ddr::Models::Engine.root.to_s, "spec", "fixtures", "imageA.tif")) end end end