spec/models/admin_web/image_spec.rb
require 'rails_helper'
module WebAdmin
RSpec.describe Image, :type => :model do
context "Relationships" do
it { should belong_to :album }
end
context "Validations" do
it { should validate_presence_of :album }
it { should validate_presence_of :file }
end
end
end