Sha256: f1d1738e68d744f0b29b5ba8579958394a7af6591430fad8e5743217380832d0
Contents?: true
Size: 554 Bytes
Versions: 9
Compression:
Stored size: 554 Bytes
Contents
require 'spec_helper' module Refinery module <%= namespacing %> describe <%= class_name %> do describe "validations", type: :model 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
9 entries across 9 versions & 1 rubygems