store images in active_yaml too

This commit is contained in:
2022-12-17 12:15:26 +02:00
parent 6dbddce173
commit 50137f9e04
4 changed files with 333 additions and 28 deletions

View File

@ -2,10 +2,10 @@ require 'rails_helper'
module Merged
RSpec.describe Image, type: :model do
let(:first) {Image.all.values.first}
let(:first) {Image.first}
it "has Image.all" do
expect(Image.all.class).to be Hash
expect(Image.all.length).to be 41
end
it "has image" do
expect(first.class).to be Image
@ -18,7 +18,7 @@ module Merged
expect(first.width).to eq 1279
end
it "has height and width" do
expect(first.aspect_ratio).to eq [13,5]
# expect(first.aspect_ratio).to eq [13,5]
end
end