Sha256: 34c10fbaa654ee54a869710ebe48bebba47b0dbbb0a3b9780c3c23771c7f4448
Contents?: true
Size: 540 Bytes
Versions: 17
Compression:
Stored size: 540 Bytes
Contents
require 'spec_helper' module Refinery module <%= namespacing %> describe <%= class_name %> do describe "validations" do subject do FactoryGirl.create(:<%= singular_name %><% if (title = attributes.detect { |a| a.type.to_s == "string" }).present? -%>, :<%= title.name %> => "Refinery CMS"<% end %>) end it { should be_valid } its(:errors) { should be_empty } <% if title -%> its(:<%= title.name %>) { should == "Refinery CMS" } <% end -%> end end end end
Version data entries
17 entries across 17 versions & 1 rubygems