1
0
mirror of https://github.com/danbee/my-images synced 2025-03-04 08:49:05 +00:00
my-images/spec/models/image_spec.rb

12 lines
250 B
Ruby

require "rails_helper"
describe Image do
it { is_expected.to validate_presence_of(:image) }
it { is_expected.to belong_to(:user) }
it "should not be valid without an image" do
image = Image.new
expect(image).not_to be_valid
end
end