discourse/spec/models/onebox_render_spec.rb

12 lines
270 B
Ruby
Raw Normal View History

2013-02-05 14:16:51 -05:00
require 'spec_helper'
describe OneboxRender do
2013-02-25 11:42:20 -05:00
2013-02-05 14:16:51 -05:00
it { should validate_presence_of :url }
it { should validate_presence_of :cooked }
2013-02-25 11:42:20 -05:00
it { should validate_presence_of :expires_at }
2013-02-05 14:16:51 -05:00
it { should have_many :post_onebox_renders }
it { should have_many :posts }
end