Sha256: d8bef069dc25c195aaa5dcc19da4367b4e4b553c768ff0e542dfbd0cee106905
Contents?: true
Size: 420 Bytes
Versions: 1
Compression:
Stored size: 420 Bytes
Contents
require 'spec_helper' module Refinery module Blog describe Post, type: :model do it "should not have images" do blog = FactoryGirl.create(:blog_post) expect(blog.images.count).to eq(0) end it "should have images" do blog = FactoryGirl.create(:blog_post_with_image) expect(blog.images.count).to eq(1) end end end end if defined?(Refinery::Blog::Post)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
refinerycms-page-images-3.0.0 | spec/models/refinery/blog_spec.rb |