mirror of
https://github.com/danbee/my-images
synced 2025-03-04 08:49:05 +00:00
13 lines
292 B
Ruby
13 lines
292 B
Ruby
require "rails_helper"
|
|
|
|
describe Image do
|
|
it { is_expected.to validate_presence_of(:image) }
|
|
it { is_expected.to belong_to(:user) }
|
|
it { is_expected.to belong_to(:album) }
|
|
|
|
it "should not be valid without an image" do
|
|
image = Image.new
|
|
expect(image).not_to be_valid
|
|
end
|
|
end
|