spec/factories/asset.rb in landable-1.13.1 vs spec/factories/asset.rb in landable-1.13.2
- old
+ new
@@ -5,10 +5,10 @@
all_fixtures { ['panda.png', 'cthulhu.jpg', 'small.pdf', 'sloth.png'] }
sequence(:fixture) do
taken = Landable::Asset.pluck(:data)
all_fixtures.find { |name| !taken.include?(name) }.tap do |available|
- raise "Add more files to spec/fixtures/assets; we've only got #{all_fixtures.length} available." if available.nil?
+ fail "Add more files to spec/fixtures/assets; we've only got #{all_fixtures.length} available." if available.nil?
end
end
end
sequence(:name) { |n| "asset_upload_#{n}" }