22 lines
467 B
Ruby
22 lines
467 B
Ruby
# frozen_string_literal: true
|
|
|
|
# == Schema Information
|
|
#
|
|
# Table name: commercials
|
|
#
|
|
# id :bigint not null, primary key
|
|
# commercial_type :string
|
|
# commercialable_type :string
|
|
# url :string
|
|
# created_at :datetime
|
|
# updated_at :datetime
|
|
# commercial_id :string
|
|
# commercialable_id :integer
|
|
#
|
|
require 'spec_helper'
|
|
|
|
describe Commercial do
|
|
|
|
it { should validate_presence_of(:url) }
|
|
|
|
end
|